Skip to content

Instantly share code, notes, and snippets.

@martinandersen3d
martinandersen3d / merge-object.js
Created November 25, 2017 03:31 — forked from wycliffepeart/merge-object.js
Javascript Object.assign Alternative . The mergeObject() method is used to copy the values of all enumerable own properties from one or more source objects to a target object. It will return the target object.
function mergeObject(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (source.hasOwnProperty(key)) {
target[key] = source[key];
}
}
}
return target;
@martinandersen3d
martinandersen3d / cloudSettings
Last active February 15, 2018 02:52
Visual Studio Code Sync Settings GIST
{"lastUpload":"2018-02-15T02:52:27.739Z","extensionVersion":"v2.8.7"}