iching-broker-level1/node_modules/hasown
Christopher Hase 323cea883d
All checks were successful
ci / build (push) Successful in 1m14s
unit tests part 3
2025-03-31 14:27:20 +02:00
..
.github unit tests part 3 2025-03-31 14:27:20 +02:00
.eslintrc unit tests part 3 2025-03-31 14:27:20 +02:00
.nycrc unit tests part 3 2025-03-31 14:27:20 +02:00
CHANGELOG.md unit tests part 3 2025-03-31 14:27:20 +02:00
index.d.ts unit tests part 3 2025-03-31 14:27:20 +02:00
index.js unit tests part 3 2025-03-31 14:27:20 +02:00
LICENSE unit tests part 3 2025-03-31 14:27:20 +02:00
package.json unit tests part 3 2025-03-31 14:27:20 +02:00
README.md unit tests part 3 2025-03-31 14:27:20 +02:00
tsconfig.json unit tests part 3 2025-03-31 14:27:20 +02: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