glam/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown
2025-12-21 00:01:54 +01:00
..
.github remove a,bihguous web-claims 2025-12-21 00:01:54 +01:00
.eslintrc remove a,bihguous web-claims 2025-12-21 00:01:54 +01:00
.nycrc remove a,bihguous web-claims 2025-12-21 00:01:54 +01:00
CHANGELOG.md remove a,bihguous web-claims 2025-12-21 00:01:54 +01:00
index.d.ts remove a,bihguous web-claims 2025-12-21 00:01:54 +01:00
index.js remove a,bihguous web-claims 2025-12-21 00:01:54 +01:00
LICENSE remove a,bihguous web-claims 2025-12-21 00:01:54 +01:00
package.json remove a,bihguous web-claims 2025-12-21 00:01:54 +01:00
README.md remove a,bihguous web-claims 2025-12-21 00:01:54 +01:00
tsconfig.json remove a,bihguous web-claims 2025-12-21 00:01:54 +01: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