Portfolio/node_modules/.pnpm/hasown@2.0.1/node_modules/hasown
2024-02-14 16:38:58 -05:00
..
.github added TailwindCSS support 2024-02-14 16:38:58 -05:00
.eslintrc added TailwindCSS support 2024-02-14 16:38:58 -05:00
.nycrc added TailwindCSS support 2024-02-14 16:38:58 -05:00
CHANGELOG.md added TailwindCSS support 2024-02-14 16:38:58 -05:00
index.d.ts added TailwindCSS support 2024-02-14 16:38:58 -05:00
index.js added TailwindCSS support 2024-02-14 16:38:58 -05:00
LICENSE added TailwindCSS support 2024-02-14 16:38:58 -05:00
package.json added TailwindCSS support 2024-02-14 16:38:58 -05:00
README.md added TailwindCSS support 2024-02-14 16:38:58 -05:00
tsconfig.json added TailwindCSS support 2024-02-14 16:38:58 -05:00

hasown Version Badge

github actions coverage License Downloads

npm badge

A robust, ES3 compatible, "has own property" predicate.

Example

const assert = require('assert');
const hasOwn = require('hasown');

assert.equal(hasOwn({}, 'toString'), false);
assert.equal(hasOwn([], 'length'), true);
assert.equal(hasOwn({ a: 42 }, 'a'), true);

Tests

Simply clone the repo, npm install, and run npm test