google_forms/node_modules/hasown
RameshT f9bc85d5f8 Your commit message 2024-08-09 17:34:48 +05:30
..
.github Your commit message 2024-08-09 17:34:48 +05:30
.eslintrc Your commit message 2024-08-09 17:34:48 +05:30
.nycrc Your commit message 2024-08-09 17:34:48 +05:30
CHANGELOG.md Your commit message 2024-08-09 17:34:48 +05:30
LICENSE Your commit message 2024-08-09 17:34:48 +05:30
README.md Your commit message 2024-08-09 17:34:48 +05:30
index.d.ts Your commit message 2024-08-09 17:34:48 +05:30
index.js Your commit message 2024-08-09 17:34:48 +05:30
package.json Your commit message 2024-08-09 17:34:48 +05:30
tsconfig.json Your commit message 2024-08-09 17:34:48 +05:30

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