svalavuo 2932879887 Dockerized solution 3 일 전
..
.github 2932879887 Dockerized solution 3 일 전
.nycrc 2932879887 Dockerized solution 3 일 전
CHANGELOG.md 2932879887 Dockerized solution 3 일 전
LICENSE 2932879887 Dockerized solution 3 일 전
README.md 2932879887 Dockerized solution 3 일 전
eslint.config.mjs 2932879887 Dockerized solution 3 일 전
index.d.ts 2932879887 Dockerized solution 3 일 전
index.js 2932879887 Dockerized solution 3 일 전
package.json 2932879887 Dockerized solution 3 일 전
tsconfig.json 2932879887 Dockerized solution 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