Icard/angular-clarity-master(work.../node_modules/hasown
realSnehal 400e0876de frontend 2024-07-16 20:25:36 +05:30
..
.github frontend 2024-07-16 20:25:36 +05:30
.eslintrc frontend 2024-07-16 20:25:36 +05:30
.nycrc frontend 2024-07-16 20:25:36 +05:30
CHANGELOG.md frontend 2024-07-16 20:25:36 +05:30
LICENSE frontend 2024-07-16 20:25:36 +05:30
README.md frontend 2024-07-16 20:25:36 +05:30
index.d.ts frontend 2024-07-16 20:25:36 +05:30
index.js frontend 2024-07-16 20:25:36 +05:30
package.json frontend 2024-07-16 20:25:36 +05:30
tsconfig.json frontend 2024-07-16 20:25:36 +05:30

README.md

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