This commit is contained in:
Lukian LEIZOUR 2023-03-02 23:53:37 +01:00
parent 851d51a1cf
commit 9965a9ba6d
129 changed files with 26774 additions and 24 deletions

20
node_modules/isarray/test.js generated vendored Normal file
View file

@ -0,0 +1,20 @@
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();
});