潘超林 79770928d5 init: 初始化项目 2 tygodni temu
..
.github 79770928d5 init: 初始化项目 2 tygodni temu
.eslintrc 79770928d5 init: 初始化项目 2 tygodni temu
.nycrc 79770928d5 init: 初始化项目 2 tygodni temu
CHANGELOG.md 79770928d5 init: 初始化项目 2 tygodni temu
LICENSE 79770928d5 init: 初始化项目 2 tygodni temu
README.md 79770928d5 init: 初始化项目 2 tygodni temu
index.d.ts 79770928d5 init: 初始化项目 2 tygodni temu
index.js 79770928d5 init: 初始化项目 2 tygodni temu
package.json 79770928d5 init: 初始化项目 2 tygodni temu
tsconfig.json 79770928d5 init: 初始化项目 2 tygodni temu

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