radin-scale-api/node_modules/hasown
mehranz 0eb8fbcf69 update 2026-02-16 15:55:07 +03:30
..
.github update 2026-02-16 15:55:07 +03:30
.eslintrc update 2026-02-16 15:55:07 +03:30
.nycrc update 2026-02-16 15:55:07 +03:30
CHANGELOG.md update 2026-02-16 15:55:07 +03:30
LICENSE update 2026-02-16 15:55:07 +03:30
README.md update 2026-02-16 15:55:07 +03:30
index.d.ts update 2026-02-16 15:55:07 +03:30
index.js update 2026-02-16 15:55:07 +03:30
package.json update 2026-02-16 15:55:07 +03:30
tsconfig.json update 2026-02-16 15:55:07 +03:30

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