arudradey's picture
|
download
raw
1.61 kB

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

Xet Storage Details

Size:
1.61 kB
·
Xet hash:
617b2e4298c74be6005f2ba455c2a9c7573b5b01c1c02300358e03a0f41fc6c0

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.