back to Overview

.merge()

Takes a list of objects and copies the properties into the target object.
Util module only.

Syntax Variants

list.merge()
list.merge(target)
_.merge(list)
_.merge(list, target)

Parameters

list
The list of objects. Can be an array, a Minified list or any other array-like structure with length property.
target (optional)
a target object to copy the properties to. If no target is given, merge()
(return value)
a new object that contains the pro

Description

Takes a list of objects and copies the properties into the target object. If no target object has been given, a new object will be created. Values will be shallow-copied. If a property is in the list more than once, the last one will be used.

See also..

Comments

comments powered by Disqus

back to Overview

Functions