mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Bump to v4.6.0.
This commit is contained in:
@@ -18,8 +18,10 @@ import baseSet from './_baseSet';
|
||||
* @returns {Object} Returns `object`.
|
||||
* @example
|
||||
*
|
||||
* _.setWith({ '0': { 'length': 2 } }, '[0][1][2]', 3, Object);
|
||||
* // => { '0': { '1': { '2': 3 }, 'length': 2 } }
|
||||
* var object = {};
|
||||
*
|
||||
* _.setWith(object, '[0][1]', 'a', Object);
|
||||
* // => { '0': { '1': 'a' } }
|
||||
*/
|
||||
function setWith(object, path, value, customizer) {
|
||||
customizer = typeof customizer == 'function' ? customizer : undefined;
|
||||
|
||||
Reference in New Issue
Block a user