satitm-sso-node/node_modules/hasown
2024-05-03 16:11:08 +07:00
..
.github sso 2024-05-03 16:11:08 +07:00
.eslintrc sso 2024-05-03 16:11:08 +07:00
.nycrc sso 2024-05-03 16:11:08 +07:00
CHANGELOG.md sso 2024-05-03 16:11:08 +07:00
index.d.ts sso 2024-05-03 16:11:08 +07:00
index.js sso 2024-05-03 16:11:08 +07:00
LICENSE sso 2024-05-03 16:11:08 +07:00
package.json sso 2024-05-03 16:11:08 +07:00
README.md sso 2024-05-03 16:11:08 +07:00
tsconfig.json sso 2024-05-03 16:11:08 +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