This repository has been archived on 2026-07-15. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
drive/frontend/node_modules/hasown
Elijah 724d70e58b
Some checks failed
Automated Container Build / build-and-push (push) Failing after 12s
Inital build
2026-05-22 12:29:43 -07:00
..
.github Inital build 2026-05-22 12:29:43 -07:00
.nycrc Inital build 2026-05-22 12:29:43 -07:00
CHANGELOG.md Inital build 2026-05-22 12:29:43 -07:00
eslint.config.mjs Inital build 2026-05-22 12:29:43 -07:00
index.d.ts Inital build 2026-05-22 12:29:43 -07:00
index.js Inital build 2026-05-22 12:29:43 -07:00
LICENSE Inital build 2026-05-22 12:29:43 -07:00
package.json Inital build 2026-05-22 12:29:43 -07:00
README.md Inital build 2026-05-22 12:29:43 -07:00
tsconfig.json Inital build 2026-05-22 12:29:43 -07:00

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