zhizhi/backend/coldstart/node_modules/hasown
飞毛嘴帅气爱 21310c4792 M14-环节4: 热身历史持久化+查询API 2026-03-08 17:56:28 +08:00
..
.github M14-环节4: 热身历史持久化+查询API 2026-03-08 17:56:28 +08:00
.eslintrc M14-环节4: 热身历史持久化+查询API 2026-03-08 17:56:28 +08:00
.nycrc M14-环节4: 热身历史持久化+查询API 2026-03-08 17:56:28 +08:00
CHANGELOG.md M14-环节4: 热身历史持久化+查询API 2026-03-08 17:56:28 +08:00
LICENSE M14-环节4: 热身历史持久化+查询API 2026-03-08 17:56:28 +08:00
README.md M14-环节4: 热身历史持久化+查询API 2026-03-08 17:56:28 +08:00
index.d.ts M14-环节4: 热身历史持久化+查询API 2026-03-08 17:56:28 +08:00
index.js M14-环节4: 热身历史持久化+查询API 2026-03-08 17:56:28 +08:00
package.json M14-环节4: 热身历史持久化+查询API 2026-03-08 17:56:28 +08:00
tsconfig.json M14-环节4: 热身历史持久化+查询API 2026-03-08 17:56:28 +08: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