PHP 8.2.30
Preview: test.js Size: 453 B
/opt/alt/alt-nodejs14/root/lib/node_modules/npm/node_modules/util-extend/test.js

var assert = require('assert');
var extend = require('./');
assert.deepEqual(extend({a:1}),             {a:1});
assert.deepEqual(extend({a:1}, []),         {a:1});
assert.deepEqual(extend({a:1}, null),       {a:1});
assert.deepEqual(extend({a:1}, true),       {a:1});
assert.deepEqual(extend({a:1}, false),      {a:1});
assert.deepEqual(extend({a:1}, {b:2}),      {a:1, b:2});
assert.deepEqual(extend({a:1, b:2}, {b:3}), {a:1, b:3});
console.log('ok');

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
1.39 KB lrw-r--r-- 2026-02-22 20:40:32
Edit Download
1.07 KB lrw-r--r-- 2026-02-22 20:40:32
Edit Download
1.21 KB lrw-r--r-- 2026-02-22 20:40:32
Edit Download
275 B lrw-r--r-- 2026-02-22 20:40:32
Edit Download
453 B lrw-r--r-- 2026-02-22 20:40:32
Edit Download

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