|
Download node_modules/hasown/README.md from Snapkitty/agentscope-sift: direct link, hf CLI and curl.
- Browser
- Download file 1.65 kB
-
https://huggingface.co/Snapkitty/agentscope-sift/resolve/main/node_modules/hasown/README.md
- Command line
-
hf download hf://Snapkitty/agentscope-sift/node_modules/hasown/README.md
-
curl -L -o README.md https://huggingface.co/Snapkitty/agentscope-sift/resolve/main/node_modules/hasown/README.md
1.65 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
