seven c79d79ff8e 3333 2 päivää sitten
..
.github c79d79ff8e 3333 2 päivää sitten
.eslintrc c79d79ff8e 3333 2 päivää sitten
.nycrc c79d79ff8e 3333 2 päivää sitten
CHANGELOG.md c79d79ff8e 3333 2 päivää sitten
LICENSE c79d79ff8e 3333 2 päivää sitten
README.md c79d79ff8e 3333 2 päivää sitten
index.d.ts c79d79ff8e 3333 2 päivää sitten
index.js c79d79ff8e 3333 2 päivää sitten
package.json c79d79ff8e 3333 2 päivää sitten
tsconfig.json c79d79ff8e 3333 2 päivää sitten

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