PHP 8.2.30
Preview: index.js Size: 229 B
/opt/alt/alt-nodejs8/root/lib/node_modules/npm/node_modules/invert-kv/index.js

'use strict';
module.exports = function (obj) {
	if (typeof obj !== 'object') {
		throw new TypeError('Expected an object');
	}

	var ret = {};

	for (var key in obj) {
		var val = obj[key];
		ret[val] = key;
	}

	return ret;
};

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
229 B lrw-r--r-- 2021-09-28 10:29:53
Edit Download
1.49 KB lrw-r--r-- 2021-09-28 10:29:53
Edit Download
480 B lrw-r--r-- 2021-09-28 10:29:53
Edit Download

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