mmpSearch/assets/js/creations/server/node_modules/hasown
JotaChina 07562989cf
Deploy / Deploy (push) Successful in 1m16s Details
sync mode on
2025-10-26 16:43:01 -03:00
..
.github sync mode on 2025-10-26 16:43:01 -03:00
.eslintrc sync mode on 2025-10-26 16:43:01 -03:00
.nycrc sync mode on 2025-10-26 16:43:01 -03:00
CHANGELOG.md sync mode on 2025-10-26 16:43:01 -03:00
LICENSE sync mode on 2025-10-26 16:43:01 -03:00
README.md sync mode on 2025-10-26 16:43:01 -03:00
index.d.ts sync mode on 2025-10-26 16:43:01 -03:00
index.js sync mode on 2025-10-26 16:43:01 -03:00
package.json sync mode on 2025-10-26 16:43:01 -03:00
tsconfig.json sync mode on 2025-10-26 16:43:01 -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