/ etherpad / src / plugin_packages / get-intrinsic / node_modules / hasown /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]node_modules/6 days ago -  
[   ]tsconfig.json39 years ago 73  
[   ]package.json39 years ago2.2K 
[   ]index.js39 years ago206  
[TXT]index.d.ts39 years ago117  
[TXT]README.md39 years ago1.6K 
[   ]LICENSE39 years ago1.1K 
[TXT]CHANGELOG.md39 years ago2.5K 
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