AI-Voice-Agent-Node/node_modules/hasown
2025-05-27 21:06:13 +05:30
..
.github alerts,filters,websocket sync 2025-05-27 21:06:13 +05:30
.eslintrc alerts,filters,websocket sync 2025-05-27 21:06:13 +05:30
.nycrc alerts,filters,websocket sync 2025-05-27 21:06:13 +05:30
CHANGELOG.md alerts,filters,websocket sync 2025-05-27 21:06:13 +05:30
index.d.ts alerts,filters,websocket sync 2025-05-27 21:06:13 +05:30
index.js alerts,filters,websocket sync 2025-05-27 21:06:13 +05:30
LICENSE alerts,filters,websocket sync 2025-05-27 21:06:13 +05:30
package.json alerts,filters,websocket sync 2025-05-27 21:06:13 +05:30
README.md alerts,filters,websocket sync 2025-05-27 21:06:13 +05:30
tsconfig.json alerts,filters,websocket sync 2025-05-27 21:06:13 +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