flarum-msteams-webhook/js/node_modules/hasown
MauBiBot dcca5c22e2 npm build 2026-05-05 19:11:17 +02:00
..
.github npm build 2026-05-05 19:11:17 +02:00
.nycrc npm build 2026-05-05 19:11:17 +02:00
CHANGELOG.md npm build 2026-05-05 19:11:17 +02:00
LICENSE npm build 2026-05-05 19:11:17 +02:00
README.md npm build 2026-05-05 19:11:17 +02:00
eslint.config.mjs npm build 2026-05-05 19:11:17 +02:00
index.d.ts npm build 2026-05-05 19:11:17 +02:00
index.js npm build 2026-05-05 19:11:17 +02:00
package.json npm build 2026-05-05 19:11:17 +02:00
tsconfig.json npm build 2026-05-05 19:11:17 +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