HodlEye_Crypto_Price_Tracker/server/newsfeed/node_modules/hasown
2025-03-06 16:13:38 +01:00
..
.github Release 1.0.1 2025-03-06 16:13:38 +01:00
.eslintrc Release 1.0.1 2025-03-06 16:13:38 +01:00
.nycrc Release 1.0.1 2025-03-06 16:13:38 +01:00
CHANGELOG.md Release 1.0.1 2025-03-06 16:13:38 +01:00
index.d.ts Release 1.0.1 2025-03-06 16:13:38 +01:00
index.js Release 1.0.1 2025-03-06 16:13:38 +01:00
LICENSE Release 1.0.1 2025-03-06 16:13:38 +01:00
package.json Release 1.0.1 2025-03-06 16:13:38 +01:00
README.md Release 1.0.1 2025-03-06 16:13:38 +01:00
tsconfig.json Release 1.0.1 2025-03-06 16:13:38 +01: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