initial + readme updates

This commit is contained in:
Arjun Patel
2018-06-25 19:21:14 -07:00
parent 9983a79efd
commit 4cbe20aed9
143 changed files with 22815 additions and 1 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();
});