7fife-backend/node_modules/hasown
Nawaaz b8a5323689 updated code 2024-03-11 17:59:54 +05:30
..
.github update code 2024-03-07 18:31:44 +05:30
.eslintrc update code 2024-03-07 18:31:44 +05:30
.nycrc update code 2024-03-07 18:31:44 +05:30
CHANGELOG.md update code 2024-03-07 18:31:44 +05:30
LICENSE update code 2024-03-07 18:31:44 +05:30
README.md update code 2024-03-07 18:31:44 +05:30
index.d.ts update code 2024-03-07 18:31:44 +05:30
index.js update code 2024-03-07 18:31:44 +05:30
package.json updated code 2024-03-11 17:59:54 +05:30
tsconfig.json update code 2024-03-07 18:31:44 +05:30

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