timetracker/frontend/node_modules/hasown
hhftechnologies c8f5379289 update
2024-11-25 23:16:17 +05:30
..
.github update 2024-11-25 23:16:17 +05:30
.eslintrc update 2024-11-25 23:16:17 +05:30
.nycrc update 2024-11-25 23:16:17 +05:30
CHANGELOG.md update 2024-11-25 23:16:17 +05:30
index.d.ts update 2024-11-25 23:16:17 +05:30
index.js update 2024-11-25 23:16:17 +05:30
LICENSE update 2024-11-25 23:16:17 +05:30
package.json update 2024-11-25 23:16:17 +05:30
README.md update 2024-11-25 23:16:17 +05:30
tsconfig.json update 2024-11-25 23:16:17 +05:30

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