Spaces:
Runtime error
Runtime error
Download masteringModule/node_modules/object-inspect/test/deep.js from SE-09/HapticsProject: direct link, hf CLI and curl.
- Browser
- Download file 400 Bytes
-
https://huggingface.co/spaces/SE-09/HapticsProject/resolve/refs%2Fpr%2F32/masteringModule/node_modules/object-inspect/test/deep.js
- Command line
-
hf download hf://spaces/SE-09/HapticsProject@refs/pr/32/masteringModule/node_modules/object-inspect/test/deep.js
-
curl -L -o deep.js https://huggingface.co/spaces/SE-09/HapticsProject/resolve/refs%2Fpr%2F32/masteringModule/node_modules/object-inspect/test/deep.js
400 Bytes
| var inspect = require('../'); | |
| var test = require('tape'); | |
| test('deep', function (t) { | |
| t.plan(4); | |
| var obj = [[[[[[500]]]]]]; | |
| t.equal(inspect(obj), '[ [ [ [ [ [Array] ] ] ] ] ]'); | |
| t.equal(inspect(obj, { depth: 4 }), '[ [ [ [ [Array] ] ] ] ]'); | |
| t.equal(inspect(obj, { depth: 2 }), '[ [ [Array] ] ]'); | |
| t.equal(inspect([[[{ a: 1 }]]], { depth: 3 }), '[ [ [ [Object] ] ] ]'); | |
| }); | |