/ student-intifada / node_modules / hasown /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[TXT]CHANGELOG.mda year ago2.5K 
[   ]LICENSEa year ago1.1K 
[TXT]README.mda year ago1.6K595aea1 more query options + view options [كارل مبارك]
[TXT]index.d.tsa year ago117  
[   ]index.jsa year ago206  
[   ]package.jsona year ago2.2Kafd0ccc remove unused [كارل مبارك]
[   ]tsconfig.jsona year ago 73 595aea1 more query options + view options [كارل مبارك]
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

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80