SAP-BTP-Spielwiese/app1/node_modules/hasown
Markus Rettig 775ac7b58c completed step 3 from the tutorial
you must login with an BTP account in order to see the app
2024-02-08 16:13:36 +01:00
..
.github completed step 3 from the tutorial 2024-02-08 16:13:36 +01:00
.eslintrc completed step 3 from the tutorial 2024-02-08 16:13:36 +01:00
.nycrc completed step 3 from the tutorial 2024-02-08 16:13:36 +01:00
CHANGELOG.md completed step 3 from the tutorial 2024-02-08 16:13:36 +01:00
index.d.ts completed step 3 from the tutorial 2024-02-08 16:13:36 +01:00
index.d.ts.map completed step 3 from the tutorial 2024-02-08 16:13:36 +01:00
index.js completed step 3 from the tutorial 2024-02-08 16:13:36 +01:00
LICENSE completed step 3 from the tutorial 2024-02-08 16:13:36 +01:00
package.json completed step 3 from the tutorial 2024-02-08 16:13:36 +01:00
README.md completed step 3 from the tutorial 2024-02-08 16:13:36 +01:00
tsconfig.json completed step 3 from the tutorial 2024-02-08 16:13:36 +01:00

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