Spaces:
Running
Running
Download node_modules/has/test/index.js from Chunte/HFBA: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/spaces/Chunte/HFBA/resolve/refs%2Fpr%2F1/node_modules/has/test/index.js
- Command line
-
hf download hf://spaces/Chunte/HFBA@refs/pr/1/node_modules/has/test/index.js
-
curl -L -o index.js https://huggingface.co/spaces/Chunte/HFBA/resolve/refs%2Fpr%2F1/node_modules/has/test/index.js
331 Bytes
| ; | |
| var test = require('tape'); | |
| var has = require('../'); | |
| test('has', function (t) { | |
| t.equal(has({}, 'hasOwnProperty'), false, 'object literal does not have own property "hasOwnProperty"'); | |
| t.equal(has(Object.prototype, 'hasOwnProperty'), true, 'Object.prototype has own property "hasOwnProperty"'); | |
| t.end(); | |
| }); | |