PHP 8.2.30
Preview: test.js Size: 320 B
//lib/node_modules/npm/node_modules/isarray/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();
});

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
13 B lrw-r--r-- 2021-03-10 14:36:37
Edit Download
48 B lrw-r--r-- 2021-03-10 14:36:37
Edit Download
470 B lrw-r--r-- 2021-03-10 14:36:37
Edit Download
132 B lrw-r--r-- 2021-03-10 14:36:37
Edit Download
55 B lrw-r--r-- 2021-03-10 14:36:37
Edit Download
1.76 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
1.85 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
320 B lrw-r--r-- 2021-03-10 14:36:37
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).