甘艺伟 082d4d53ac no message 2 tygodni temu
..
.github 082d4d53ac no message 2 tygodni temu
.eslintrc 082d4d53ac no message 2 tygodni temu
.nycrc 082d4d53ac no message 2 tygodni temu
CHANGELOG.md 082d4d53ac no message 2 tygodni temu
LICENSE 082d4d53ac no message 2 tygodni temu
README.md 082d4d53ac no message 2 tygodni temu
index.d.ts 082d4d53ac no message 2 tygodni temu
index.js 082d4d53ac no message 2 tygodni temu
package.json 082d4d53ac no message 2 tygodni temu
tsconfig.json 082d4d53ac no message 2 tygodni temu

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