![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | CHANGELOG.md | a year ago | 2.5K | |
![]() | LICENSE | a year ago | 1.1K | |
![]() | README.md | a year ago | 1.6K | 595aea1 more query options + view options [كارل مبارك] |
![]() | index.d.ts | a year ago | 117 | |
![]() | index.js | a year ago | 206 | |
![]() | package.json | a year ago | 2.2K | afd0ccc remove unused [كارل مبارك] |
![]() | tsconfig.json | a year ago | 73 | 595aea1 more query options + view options [كارل مبارك] |
A robust, ES3 compatible, "has own property" predicate.
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);
Simply clone the repo, npm install
, and run npm test