aggiunti componenti bower/node

This commit is contained in:
Samuele E. Locatelli
2016-10-03 10:53:40 +02:00
parent 2b20f8fd94
commit 77f390460f
2590 changed files with 343529 additions and 0 deletions
+20
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();
});