cotizador/node_modules/hasown
Chelo I7 3b7552d05d se compilo tailwin 2026-05-28 01:17:09 -03:00
..
.github se compilo tailwin 2026-05-28 01:17:09 -03:00
.nycrc se compilo tailwin 2026-05-28 01:17:09 -03:00
CHANGELOG.md se compilo tailwin 2026-05-28 01:17:09 -03:00
LICENSE se compilo tailwin 2026-05-28 01:17:09 -03:00
README.md se compilo tailwin 2026-05-28 01:17:09 -03:00
eslint.config.mjs se compilo tailwin 2026-05-28 01:17:09 -03:00
index.d.ts se compilo tailwin 2026-05-28 01:17:09 -03:00
index.js se compilo tailwin 2026-05-28 01:17:09 -03:00
package.json se compilo tailwin 2026-05-28 01:17:09 -03:00
tsconfig.json se compilo tailwin 2026-05-28 01:17:09 -03: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