constant: merge
{
"comment": "/**\r\n * This method is like `assign` except that it recursively merges own and\r\n * inherited enumerable string keyed properties of source objects into the\r\n * destination object. Source properties that resolve to `undefined` are\r\n * skipped if a destination value exists. Array and plain object properties\r\n * are merged recursively. Other objects and value types are overridden by\r\n * assignment. Source objects are applied from left to right. Subsequent\r\n * sources overwrite property assignments of previous sources.\r\n *\r\n * **Note:** This method mutates `object`.\r\n *\r\n * @since 0.5.0\r\n * @category Object\r\n * @param {Object} object The destination object.\r\n * @param {...Object} [sources] The source objects.\r\n * @returns {Object} Returns `object`.\r\n * @example\r\n *\r\n * const object = {\r\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\r\n * }\r\n *\r\n * const other = {\r\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\r\n * }\r\n *\r\n * merge(object, other)\r\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\r\n */",
"meta": {
"range": [
1113,
1210
],
"filename": "merge.js",
"lineno": 33,
"path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\lodash\\lodash-repo",
"code": {
"id": "astnode100006222",
"name": "merge",
"type": "CallExpression",
"value": ""
}
},
"description": "This method is like `assign` except that it recursively merges own and\rinherited enumerable string keyed properties of source objects into the\rdestination object. Source properties that resolve to `undefined` are\rskipped if a destination value exists. Array and plain object properties\rare merged recursively. Other objects and value types are overridden by\rassignment. Source objects are applied from left to right. Subsequent\rsources overwrite property assignments of previous sources.\r\r**Note:** This method mutates `object`.",
"since": "0.5.0",
"tags": [
{
"originalTitle": "category",
"title": "category",
"text": "Object",
"value": "Object"
}
],
"params": [
{
"type": {
"names": [
"Object"
]
},
"description": "The destination object.",
"name": "object"
},
{
"type": {
"names": [
"Object"
]
},
"optional": true,
"variable": true,
"description": "The source objects.",
"name": "sources"
}
],
"returns": [
{
"type": {
"names": [
"Object"
]
},
"description": "Returns `object`."
}
],
"examples": [
"const object = {\r 'a': [{ 'b': 2 }, { 'd': 4 }]\r}\r\rconst other = {\r 'a': [{ 'c': 3 }, { 'e': 5 }]\r}\r\rmerge(object, other)\r// => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }"
],
"name": "merge",
"longname": "merge",
"kind": "constant",
"scope": "global",
"___id": "T000002R000580",
"___s": true,
"filepath": "merge.js"
}