904118851 d3db235384 123 2 ay önce
..
.github d3db235384 123 2 ay önce
.eslintrc d3db235384 123 2 ay önce
.nycrc d3db235384 123 2 ay önce
CHANGELOG.md d3db235384 123 2 ay önce
LICENSE d3db235384 123 2 ay önce
README.md d3db235384 123 2 ay önce
index.d.ts d3db235384 123 2 ay önce
index.js d3db235384 123 2 ay önce
package.json d3db235384 123 2 ay önce
tsconfig.json d3db235384 123 2 ay önce

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