X7ROOT File Manager
Current Path:
/usr/lib/node_modules/npm/node_modules/isarray
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
isarray
/
ðŸ“
..
📄
.npmignore
(13 B)
📄
.travis.yml
(48 B)
📄
Makefile
(55 B)
📄
README.md
(1.85 KB)
📄
component.json
(470 B)
📄
index.js
(132 B)
📄
package.json
(1.76 KB)
📄
test.js
(320 B)
Editing: test.js
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(); });
Upload File
Create Folder