CmdForge/node_modules/hasown
rob 32b77c3378 Update documentation with overview and architecture 2026-01-05 03:44:38 -04:00
..
.github Update documentation with overview and architecture 2026-01-05 03:44:38 -04:00
.eslintrc Update documentation with overview and architecture 2026-01-05 03:44:38 -04:00
.nycrc Update documentation with overview and architecture 2026-01-05 03:44:38 -04:00
CHANGELOG.md Update documentation with overview and architecture 2026-01-05 03:44:38 -04:00
LICENSE Update documentation with overview and architecture 2026-01-05 03:44:38 -04:00
README.md Update documentation with overview and architecture 2026-01-05 03:44:38 -04:00
index.d.ts Update documentation with overview and architecture 2026-01-05 03:44:38 -04:00
index.js Update documentation with overview and architecture 2026-01-05 03:44:38 -04:00
package.json Update documentation with overview and architecture 2026-01-05 03:44:38 -04:00
tsconfig.json Update documentation with overview and architecture 2026-01-05 03:44:38 -04: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