customer-riverside/node_modules/hasown
Philip Peterson 63ce2ba2ef wip
2026-05-24 19:23:05 -07:00
..
.github wip 2026-05-24 19:23:05 -07:00
.nycrc wip 2026-05-24 19:23:05 -07:00
CHANGELOG.md wip 2026-05-24 19:23:05 -07:00
eslint.config.mjs wip 2026-05-24 19:23:05 -07:00
index.d.ts wip 2026-05-24 19:23:05 -07:00
index.js wip 2026-05-24 19:23:05 -07:00
LICENSE wip 2026-05-24 19:23:05 -07:00
package.json wip 2026-05-24 19:23:05 -07:00
README.md wip 2026-05-24 19:23:05 -07:00
tsconfig.json wip 2026-05-24 19:23:05 -07: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