foundry-dsa41-game/node_modules/hasown
macniel 9de1531058
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s Details
chore: building the architecture
2025-09-25 13:07:30 +02:00
..
.github chore: building the architecture 2025-09-25 13:07:30 +02:00
.eslintrc chore: building the architecture 2025-09-25 13:07:30 +02:00
.nycrc chore: building the architecture 2025-09-25 13:07:30 +02:00
CHANGELOG.md chore: building the architecture 2025-09-25 13:07:30 +02:00
LICENSE chore: building the architecture 2025-09-25 13:07:30 +02:00
README.md chore: building the architecture 2025-09-25 13:07:30 +02:00
index.d.ts chore: building the architecture 2025-09-25 13:07:30 +02:00
index.js chore: building the architecture 2025-09-25 13:07:30 +02:00
package.json chore: building the architecture 2025-09-25 13:07:30 +02:00
tsconfig.json chore: building the architecture 2025-09-25 13:07:30 +02: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