Add array path examples to _.set and _.unset docs. [ci skip]

This commit is contained in:
John-David Dalton
2016-03-31 09:54:09 -07:00
parent 431e0fa2f6
commit 5bb899a700

View File

@@ -12571,7 +12571,7 @@
* console.log(object.a[0].b.c);
* // => 4
*
* _.set(object, 'x[0].y.z', 5);
* _.set(object, ['x', '0', 'y', 'z'], 5);
* console.log(object.x[0].y.z);
* // => 5
*/
@@ -12734,7 +12734,7 @@
* console.log(object);
* // => { 'a': [{ 'b': {} }] };
*
* _.unset(object, 'a[0].b.c');
* _.unset(object, ['a', '0', 'b', 'c']);
* // => true
*
* console.log(object);