Pengusir-Hama-Burung-Otomatis/tugas akhir/node_modules/hasown
Chika 83a64f6844 Upload source code lengkap TA: Flutter, Arduino, dan Python 2026-08-05 15:26:06 +07:00
..
.github Upload source code lengkap TA: Flutter, Arduino, dan Python 2026-08-05 15:26:06 +07:00
.nycrc Upload source code lengkap TA: Flutter, Arduino, dan Python 2026-08-05 15:26:06 +07:00
CHANGELOG.md Upload source code lengkap TA: Flutter, Arduino, dan Python 2026-08-05 15:26:06 +07:00
LICENSE Upload source code lengkap TA: Flutter, Arduino, dan Python 2026-08-05 15:26:06 +07:00
README.md Upload source code lengkap TA: Flutter, Arduino, dan Python 2026-08-05 15:26:06 +07:00
eslint.config.mjs Upload source code lengkap TA: Flutter, Arduino, dan Python 2026-08-05 15:26:06 +07:00
index.d.ts Upload source code lengkap TA: Flutter, Arduino, dan Python 2026-08-05 15:26:06 +07:00
index.js Upload source code lengkap TA: Flutter, Arduino, dan Python 2026-08-05 15:26:06 +07:00
package.json Upload source code lengkap TA: Flutter, Arduino, dan Python 2026-08-05 15:26:06 +07:00
tsconfig.json Upload source code lengkap TA: Flutter, Arduino, dan Python 2026-08-05 15:26:06 +07: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