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

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