PHP 7.4.33
Preview: index.js Size: 444 B
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/object.fromentries/test/index.js
'use strict';

var fromEntries = require('../');
var test = require('tape');
var runTests = require('./tests');

test('as a function', function (t) {
	t.test('bad array/this value', function (st) {
		st['throws'](function () { fromEntries(undefined); }, TypeError, 'undefined is not an object');
		st['throws'](function () { fromEntries(null); }, TypeError, 'null is not an object');
		st.end();
	});

	runTests(fromEntries, t);

	t.end();
});

Directory Contents

Dirs: 0 × Files: 4
Name Size Perms Modified Actions
645 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
444 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
1.61 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
584 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).