projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added Entity and Entity Reference Revisions which got dropped somewhere along the...
[yaffs-website]
/
node_modules
/
isobject
/
node_modules
/
isarray
/
test.js
1
var isArray = require('./');
2
var test = require('tape');
3
4
test('is array', function(t){
5
t.ok(isArray([]));
6
t.notOk(isArray({}));
7
t.notOk(isArray(null));
8
t.notOk(isArray(false));
9
10
var obj = {};
11
obj[0] = true;
12
t.notOk(isArray(obj));
13
14
var arr = [];
15
arr.foo = 'bar';
16
t.ok(isArray(arr));
17
18
t.end();
19
});
20