PHP 8.2.30
Preview: test.js Size: 319 B
//proc/self/root/opt/alt/alt-nodejs11/root/lib/node_modules/npm/node_modules.bundled/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-10-19 09:47:49
Edit Download
48 B lrw-r--r-- 2021-10-19 09:47:49
Edit Download
470 B lrw-r--r-- 2021-10-19 09:47:49
Edit Download
132 B lrw-r--r-- 2021-10-19 09:47:49
Edit Download
54 B lrw-r--r-- 2021-10-19 09:47:49
Edit Download
1.76 KB lrw-r--r-- 2021-10-19 09:47:49
Edit Download
1.85 KB lrw-r--r-- 2021-10-19 09:47:49
Edit Download
319 B lrw-r--r-- 2021-10-19 09:47:49
Edit Download

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