BLUE
PHP 7.4.33
Path:
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/object.fromentries/test
Run
Logout
Edit File
Size: 584 B
Close
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/object.fromentries/test/tests.js
Text
Base64
'use strict'; module.exports = function (fromEntries, t) { var a = {}; var b = {}; var c = {}; var entries = [['a', a], ['b', b], ['c', c]]; var obj = { a: a, b: b, c: c }; t.deepEqual(fromEntries(entries), obj, 'entries -> obj'); t['throws'](function () { fromEntries(); }, 'entries throws on absent iterable'); t['throws'](function () { fromEntries(undefined); }, 'entries throws on undefined'); t['throws'](function () { fromEntries(null); }, 'entries throws on null'); t.deepEqual(fromEntries([['foo', 1], ['foo', 2]]), { foo: 2 }, 'works with a duplicate key'); };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
implementation.js
645 B
lrw-r--r--
2025-03-28 11:04:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
444 B
lrw-r--r--
2025-03-28 11:04:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
shimmed.js
1.61 KB
lrw-r--r--
2025-03-28 11:04:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
tests.js
584 B
lrw-r--r--
2025-03-28 11:04:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).