Skip to Content

mergeObjects()

Concatenates two arrays and removes duplicate objects (deep equality check).

Kind: global function
Returns: Array.<Object> - A new array with all unique objects from both inputs.

ParamTypeDefaultDescription
[objects]Array.<Object>[]The first array.
[otherObjects]Array.<Object>[]The second array to merge in.

Example

const merged = ARM.mergeObjects(localAddresses, serverAddresses)
Last updated on