运维小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dong 488fa3b88d 更换接口日常优化 пре 1 година
..
.github 更换接口日常优化 пре 1 година
.eslintrc 更换接口日常优化 пре 1 година
.nycrc 更换接口日常优化 пре 1 година
CHANGELOG.md 更换接口日常优化 пре 1 година
LICENSE 更换接口日常优化 пре 1 година
README.md 更换接口日常优化 пре 1 година
index.d.ts 更换接口日常优化 пре 1 година
index.js 更换接口日常优化 пре 1 година
package.json 更换接口日常优化 пре 1 година
tsconfig.json 更换接口日常优化 пре 1 година

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