e 2935effa2e webpack 1 жил өмнө
..
.github 2935effa2e webpack 1 жил өмнө
.eslintrc 2935effa2e webpack 1 жил өмнө
.nycrc 2935effa2e webpack 1 жил өмнө
CHANGELOG.md 2935effa2e webpack 1 жил өмнө
LICENSE 2935effa2e webpack 1 жил өмнө
README.md 2935effa2e webpack 1 жил өмнө
index.d.ts 2935effa2e webpack 1 жил өмнө
index.d.ts.map 2935effa2e webpack 1 жил өмнө
index.js 2935effa2e webpack 1 жил өмнө
package.json 2935effa2e webpack 1 жил өмнө
tsconfig.json 2935effa2e webpack 1 жил өмнө

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