jwt_example/node_modules/hasown
2025-04-06 10:07:32 -04:00
..
.github Partial completion of server side 2025-04-06 10:07:32 -04:00
.eslintrc Partial completion of server side 2025-04-06 10:07:32 -04:00
.nycrc Partial completion of server side 2025-04-06 10:07:32 -04:00
CHANGELOG.md Partial completion of server side 2025-04-06 10:07:32 -04:00
index.d.ts Partial completion of server side 2025-04-06 10:07:32 -04:00
index.js Partial completion of server side 2025-04-06 10:07:32 -04:00
LICENSE Partial completion of server side 2025-04-06 10:07:32 -04:00
package.json Partial completion of server side 2025-04-06 10:07:32 -04:00
README.md Partial completion of server side 2025-04-06 10:07:32 -04:00
tsconfig.json Partial completion of server side 2025-04-06 10:07:32 -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