first commit

This commit is contained in:
francesco448
2026-03-14 14:59:41 +01:00
commit 0a448b1250
603 changed files with 65311 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
var inspect = require('object-inspect');
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] ] ] ]');
});