Vertragsverwaltung_Plusfit24/node_modules/hasown
2026-02-10 15:29:29 +00:00
..
.github Initialer Commit 2026-02-10 15:29:29 +00:00
.eslintrc Initialer Commit 2026-02-10 15:29:29 +00:00
.nycrc Initialer Commit 2026-02-10 15:29:29 +00:00
CHANGELOG.md Initialer Commit 2026-02-10 15:29:29 +00:00
index.d.ts Initialer Commit 2026-02-10 15:29:29 +00:00
index.js Initialer Commit 2026-02-10 15:29:29 +00:00
LICENSE Initialer Commit 2026-02-10 15:29:29 +00:00
package.json Initialer Commit 2026-02-10 15:29:29 +00:00
README.md Initialer Commit 2026-02-10 15:29:29 +00:00
tsconfig.json Initialer Commit 2026-02-10 15:29:29 +00: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