Update _.result doc example. [ci skip]

This commit is contained in:
John-David Dalton
2015-11-23 00:00:49 -08:00
parent 618280340f
commit 393849384b

View File

@@ -11255,10 +11255,10 @@
* _.result(object, 'a[0].b.c2');
* // => 4
*
* _.result(object, 'a.b.c', 'default');
* _.result(object, 'a[0].b.c3', 'default');
* // => 'default'
*
* _.result(object, 'a.b.c', _.constant('default'));
* _.result(object, 'a[0].b.c3', _.constant('default'));
* // => 'default'
*/
function result(object, path, defaultValue) {