Spaces:
Runtime error
Runtime error
Download masteringModule/node_modules/isarray/test.js from SE-09/HapticsProject: direct link, hf CLI and curl.
- Browser
- Download file 320 Bytes
-
https://huggingface.co/spaces/SE-09/HapticsProject/resolve/refs%2Fpr%2F22/masteringModule/node_modules/isarray/test.js
- Command line
-
hf download hf://spaces/SE-09/HapticsProject@refs/pr/22/masteringModule/node_modules/isarray/test.js
-
curl -L -o test.js https://huggingface.co/spaces/SE-09/HapticsProject/resolve/refs%2Fpr%2F22/masteringModule/node_modules/isarray/test.js
320 Bytes
| var isArray = require('./'); | |
| var test = require('tape'); | |
| test('is array', function(t){ | |
| t.ok(isArray([])); | |
| t.notOk(isArray({})); | |
| t.notOk(isArray(null)); | |
| t.notOk(isArray(false)); | |
| var obj = {}; | |
| obj[0] = true; | |
| t.notOk(isArray(obj)); | |
| var arr = []; | |
| arr.foo = 'bar'; | |
| t.ok(isArray(arr)); | |
| t.end(); | |
| }); | |