chatterbox-ui/node_modules/hasown
Steve White 4a294608b1 Working layout. 2025-06-05 17:38:12 -05:00
..
.github Working layout. 2025-06-05 17:38:12 -05:00
.eslintrc Working layout. 2025-06-05 17:38:12 -05:00
.nycrc Working layout. 2025-06-05 17:38:12 -05:00
CHANGELOG.md Working layout. 2025-06-05 17:38:12 -05:00
LICENSE Working layout. 2025-06-05 17:38:12 -05:00
README.md Working layout. 2025-06-05 17:38:12 -05:00
index.d.ts Working layout. 2025-06-05 17:38:12 -05:00
index.js Working layout. 2025-06-05 17:38:12 -05:00
package.json Working layout. 2025-06-05 17:38:12 -05:00
tsconfig.json Working layout. 2025-06-05 17:38:12 -05:00

README.md

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