Gogs df670eaa27 first commit 3 tygodni temu
..
.github df670eaa27 first commit 3 tygodni temu
.eslintrc df670eaa27 first commit 3 tygodni temu
.nycrc df670eaa27 first commit 3 tygodni temu
CHANGELOG.md df670eaa27 first commit 3 tygodni temu
LICENSE df670eaa27 first commit 3 tygodni temu
README.md df670eaa27 first commit 3 tygodni temu
index.d.ts df670eaa27 first commit 3 tygodni temu
index.js df670eaa27 first commit 3 tygodni temu
package.json df670eaa27 first commit 3 tygodni temu
tsconfig.json df670eaa27 first commit 3 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