urltomarkdown/node_modules/hasown
Lee Hanken 209908a1dc update dependencies, include additional CORS header 2024-04-22 12:47:34 +01:00
..
.github update dependencies, include additional CORS header 2024-04-22 12:47:34 +01:00
.eslintrc update dependencies, include additional CORS header 2024-04-22 12:47:34 +01:00
.nycrc update dependencies, include additional CORS header 2024-04-22 12:47:34 +01:00
CHANGELOG.md update dependencies, include additional CORS header 2024-04-22 12:47:34 +01:00
LICENSE update dependencies, include additional CORS header 2024-04-22 12:47:34 +01:00
README.md update dependencies, include additional CORS header 2024-04-22 12:47:34 +01:00
index.d.ts update dependencies, include additional CORS header 2024-04-22 12:47:34 +01:00
index.js update dependencies, include additional CORS header 2024-04-22 12:47:34 +01:00
package.json update dependencies, include additional CORS header 2024-04-22 12:47:34 +01:00
tsconfig.json update dependencies, include additional CORS header 2024-04-22 12:47:34 +01: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