PIbd-21_Yaruskin_S.A_IP/лаб2/node_modules/hasown
2024-01-06 02:30:45 +04:00
..
.github all commit 2024-01-06 02:30:45 +04:00
.eslintrc all commit 2024-01-06 02:30:45 +04:00
.nycrc all commit 2024-01-06 02:30:45 +04:00
CHANGELOG.md all commit 2024-01-06 02:30:45 +04:00
index.d.ts all commit 2024-01-06 02:30:45 +04:00
index.d.ts.map all commit 2024-01-06 02:30:45 +04:00
index.js all commit 2024-01-06 02:30:45 +04:00
LICENSE all commit 2024-01-06 02:30:45 +04:00
package.json all commit 2024-01-06 02:30:45 +04:00
README.md all commit 2024-01-06 02:30:45 +04:00
tsconfig.json all commit 2024-01-06 02:30:45 +04: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