Afanasev_Stepan_PIbd-21_IP/ИП 2 лаба/node_modules/hasown/README.md
[USERNAME] 0dd26716dc Lab2-5
2024-01-10 16:11:49 +04: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