Velar/Backend/node_modules/hasown
2025-08-07 13:53:03 +05:30
..
.github Added Voice Dev 2025-08-07 13:53:03 +05:30
.eslintrc Added Voice Dev 2025-08-07 13:53:03 +05:30
.nycrc Added Voice Dev 2025-08-07 13:53:03 +05:30
CHANGELOG.md Added Voice Dev 2025-08-07 13:53:03 +05:30
index.d.ts Added Voice Dev 2025-08-07 13:53:03 +05:30
index.js Added Voice Dev 2025-08-07 13:53:03 +05:30
LICENSE Added Voice Dev 2025-08-07 13:53:03 +05:30
package.json Added Voice Dev 2025-08-07 13:53:03 +05:30
README.md Added Voice Dev 2025-08-07 13:53:03 +05:30
tsconfig.json Added Voice Dev 2025-08-07 13:53:03 +05:30

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