Elbab/node_modules/hasown
2026-04-03 20:55:43 +03:00
..
.github Başlangıç 2026-04-03 20:55:43 +03:00
.eslintrc Başlangıç 2026-04-03 20:55:43 +03:00
.nycrc Başlangıç 2026-04-03 20:55:43 +03:00
CHANGELOG.md Başlangıç 2026-04-03 20:55:43 +03:00
index.d.ts Başlangıç 2026-04-03 20:55:43 +03:00
index.js Başlangıç 2026-04-03 20:55:43 +03:00
LICENSE Başlangıç 2026-04-03 20:55:43 +03:00
package.json Başlangıç 2026-04-03 20:55:43 +03:00
README.md Başlangıç 2026-04-03 20:55:43 +03:00
tsconfig.json Başlangıç 2026-04-03 20:55:43 +03: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