Sha256: 0b785ae54f9c932df2297f4354e928fc2ca1dcc8ca16f24576b7914598311e84

Contents?: true

Size: 673 Bytes

Versions: 7

Compression:

Stored size: 673 Bytes

Contents

'use strict';

function ToObject(val) {
	if (val == null) {
		throw new TypeError('Object.assign cannot be called with null or undefined');
	}

	return Object(val);
}

module.exports = Object.assign || function (target, source) {
	var pendingException;
	var from;
	var keys;
	var to = ToObject(target);

	for (var s = 1; s < arguments.length; s++) {
		from = arguments[s];
		keys = Object.keys(Object(from));

		for (var i = 0; i < keys.length; i++) {
			try {
				to[keys[i]] = from[keys[i]];
			} catch (err) {
				if (pendingException === undefined) {
					pendingException = err;
				}
			}
		}
	}

	if (pendingException) {
		throw pendingException;
	}

	return to;
};

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
entangled-0.0.16 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/object-assign/index.js
entangled-0.0.15 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/object-assign/index.js
entangled-0.0.14 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/object-assign/index.js
entangled-0.0.13 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/object-assign/index.js
entangled-0.0.12 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/object-assign/index.js
entangled-0.0.11 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/object-assign/index.js
entangled-0.0.10 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/object-assign/index.js