Gogs df670eaa27 first commit пре 3 недеља
..
.github df670eaa27 first commit пре 3 недеља
.eslintrc df670eaa27 first commit пре 3 недеља
.nycrc df670eaa27 first commit пре 3 недеља
CHANGELOG.md df670eaa27 first commit пре 3 недеља
LICENSE df670eaa27 first commit пре 3 недеља
README.md df670eaa27 first commit пре 3 недеља
index.d.ts df670eaa27 first commit пре 3 недеља
index.js df670eaa27 first commit пре 3 недеља
package.json df670eaa27 first commit пре 3 недеља
tsconfig.json df670eaa27 first commit пре 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