zheng d4d8c5534b webpack пре 3 дана
..
.github d4d8c5534b webpack пре 3 дана
.nycrc d4d8c5534b webpack пре 3 дана
CHANGELOG.md d4d8c5534b webpack пре 3 дана
LICENSE d4d8c5534b webpack пре 3 дана
README.md d4d8c5534b webpack пре 3 дана
eslint.config.mjs d4d8c5534b webpack пре 3 дана
index.d.ts d4d8c5534b webpack пре 3 дана
index.js d4d8c5534b webpack пре 3 дана
package.json d4d8c5534b webpack пре 3 дана
tsconfig.json d4d8c5534b webpack пре 3 дана

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