Files
planilla/api/node_modules/hasown/README.md
josedario87 e1dc751397
Some checks failed
build-and-push / build (push) Successful in 33s
build-and-push / deploy (push) Failing after 1s
Modulo planilla v1
2025-05-02 17:59:47 -06:00

1.6 KiB

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