revere.dev/safelock/dashboard/node_modules/hasown
Brandon Hall 87bad2254c Remi a skid 2024-07-01 20:55:25 +01:00
..
.github Remi a skid 2024-07-01 20:55:25 +01:00
.eslintrc Remi a skid 2024-07-01 20:55:25 +01:00
.nycrc Remi a skid 2024-07-01 20:55:25 +01:00
CHANGELOG.md Remi a skid 2024-07-01 20:55:25 +01:00
LICENSE Remi a skid 2024-07-01 20:55:25 +01:00
README.md Remi a skid 2024-07-01 20:55:25 +01:00
index.d.ts Remi a skid 2024-07-01 20:55:25 +01:00
index.d.ts.map Remi a skid 2024-07-01 20:55:25 +01:00
index.js Remi a skid 2024-07-01 20:55:25 +01:00
package.json Remi a skid 2024-07-01 20:55:25 +01:00
tsconfig.json Remi a skid 2024-07-01 20:55:25 +01:00

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