📄 Extracted Text (270 words)
From: Larry Visoski
Sent: Sunday, March 23, 2014 2:42 AM
To: Karyna Shuliak;
Cc: Lesley Groff
Subject: Fwd: Oakland arrival
/** • Recursively merges own enumerable properties of the source object(s), that • don't resolve to 'undefined' into the
destination object. Subsequent sources overwrite property assignments of previous sources. If 'customize( is •
provided it is invoked to produce the merged values of the destination and • source properties. If 'customizer' returns
'undefined' merging is handled • by the method instead. The 'customizer' is bound to 'thisArg' and invoked • with five
arguments: (objectValue, sourceValue, key, object, source). * @static * @memberOf _ * @category Object * @param
(Object) object The destination object. * @param {...Object} [sources) The source objects. * @param (Function)
[customizer] The function to customize assigned values. * @param (*) [thisArg] The 'this' binding of 'customizer'. *
@returns (Object} Returns 'object'. * @example * * var users = { * 'data': ([ 'user': 'barney' }, ( 'user': 'fred' )1 * }; • * var
ages = { * 'data': [( 'age': 36 }, ( 'age': 40 11 • * • _.merge(users, ages); • // => ('data': (( 'user': 'barney', 'age': 36), {
'user': 'fred', 'age': 40 )) }* • // using a customizer callback • var object = ( *'fruits': ['apple'), *'vegetables': ['beet') • }; *
• var other = { • 'fruits': ['banana'], • 'vegetables': ['carrot') • }; • * _.merge(object, other, function(a, b) ( • if
(_.isArray(a)) { • return a.concat(b); • * )); • // => ( 'fruits': ['apple', 'banana'), 'vegetables': ['beet', 'carrot') */ var
merge = createAssigner(baseMerge); module.exports = merge;
1
EFTA_R1_01156530
EFTA02295936
ℹ️ Document Details
SHA-256
cc7c3d16a05f3925cec24fd0604e4a69cb095d0a440964cd7d1b6875f364ea1b
Bates Number
EFTA02295936
Dataset
DataSet-11
Document Type
document
Pages
1
Comments 0