MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / merge

Function merge

scripts/libs/utils/object.js:95–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 * @returns {*}
94 */
95export function merge() {
96 let result = arguments[0];
97 for (var i = 0; i < arguments.length; i++) {
98 if (i) {
99 result = mergeObj(result, arguments[i]);
100 }
101 }
102 return result;
103}
104
105/**
106 * Get the value in the object based on the text path. If you need to support arrays, please use the get method of lodash

Callers

nothing calls this directly

Calls 1

mergeObjFunction · 0.85

Tested by

no test coverage detected