/ etherpad / bin / node_modules / ep_etherpad-lite / plugin_packages / hasown /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]node_modules/3 months ago -  
[   ]tsconfig.json40 years ago 73  
[   ]package.json40 years ago2.2K 
[   ]index.js40 years ago206  
[TXT]index.d.ts40 years ago117  
[TXT]README.md40 years ago1.6K 
[   ]LICENSE40 years ago1.1K 
[TXT]CHANGELOG.md40 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