Spaces:
Sleeping
Sleeping
Download node_modules/isarray/test.js from TrinetraLabs/Placebo_AI: direct link, hf CLI and curl.
- Browser
- Download file 320 Bytes
-
https://huggingface.co/spaces/TrinetraLabs/Placebo_AI/resolve/main/node_modules/isarray/test.js
- Command line
-
hf download hf://spaces/TrinetraLabs/Placebo_AI/node_modules/isarray/test.js
-
curl -L -o test.js https://huggingface.co/spaces/TrinetraLabs/Placebo_AI/resolve/main/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(); | |
| }); | |