EternalAI/node_modules/hasown
chigulong 2a13044f12 Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +08:00
..
.github Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +08:00
.nycrc Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +08:00
CHANGELOG.md Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +08:00
LICENSE Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +08:00
README.md Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +08:00
eslint.config.mjs Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +08:00
index.d.ts Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +08:00
index.js Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +08:00
package.json Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +08:00
tsconfig.json Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +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