PHP 8.2.30
Preview: assign.js Size: 351 B
//lib/node_modules/npm/node_modules/es-abstract/helpers/assign.js

var bind = require('function-bind');
var has = bind.call(Function.call, Object.prototype.hasOwnProperty);

var $assign = Object.assign;

module.exports = function assign(target, source) {
	if ($assign) {
		return $assign(target, source);
	}

	for (var key in source) {
		if (has(source, key)) {
			target[key] = source[key];
		}
	}
	return target;
};

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
351 B lrw-r--r-- 2021-03-10 14:36:39
Edit Download
199 B lrw-r--r-- 2021-03-10 14:36:39
Edit Download
73 B lrw-r--r-- 2021-03-10 14:36:39
Edit Download
136 B lrw-r--r-- 2021-03-10 14:36:39
Edit Download
142 B lrw-r--r-- 2021-03-10 14:36:39
Edit Download
74 B lrw-r--r-- 2021-03-10 14:36:39
Edit Download

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