|
Download scripts/node_modules/hasown/README.md from techprotrade/annator: direct link, hf CLI and curl.
- Browser
- Download file 1.61 kB
-
https://huggingface.co/techprotrade/annator/resolve/fb26dc8decbf6fbcdf145aa5f9debd7eca5cae35/scripts/node_modules/hasown/README.md
- Command line
-
hf download hf://techprotrade/annator@fb26dc8decbf6fbcdf145aa5f9debd7eca5cae35/scripts/node_modules/hasown/README.md
-
curl -L -o README.md https://huggingface.co/techprotrade/annator/resolve/fb26dc8decbf6fbcdf145aa5f9debd7eca5cae35/scripts/node_modules/hasown/README.md
1.61 kB
hasown
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
