Function append mixed append(true|object|array ...args) Concatenates multiple objects or arrays into one. The first element is the receiver of the data. If the first parameter is true, then copies of the object elements are added, and the second parameter is a target-expandable object. Source file fcf:fcf.js Namespace fcf Arguments: true|object|array ...args - The set of objects to merge, as the first argument passed.

If the first parameter is true, then copies of the object elements are added, and the second parameter is a target-expandable object.

Return value: mixed The concatenated object or array that is the first argument object. Examples Example 1 let obj1 ={ a: {aa:1}, }; let obj2 ={ b: {bb:1}, }; let objDst = fcf.append({}, obj1, obj2); console.warn(objDst); console.warn(objDst.a == obj1.a ? "equal" : "not equal"); Result: >> { "a": { "aa": 1 }, "b": { "bb": 1 } } >> "equal" Example 2 let obj1 ={ a: {aa:1}, }; let obj2 ={ b: {bb:1}, }; let objDst = fcf.append(true, {}, obj1, obj2); console.warn(objDst); console.warn(objDst.a == obj1.a ? "equal" : "not equal"); Result: >> { "a": { "aa": 1 }, "b": { "bb": 1 } } >> "not equal"