Remove references to _.

This commit is contained in:
John-David Dalton
2017-01-09 17:38:33 -08:00
parent 65654f8f9e
commit 77cc37ba49
410 changed files with 875 additions and 1157 deletions

View File

@@ -3,13 +3,12 @@ import isFunction from './isFunction.js';
import toKey from './_toKey.js';
/**
* This method is like `_.get` except that if the resolved value is a
* This method is like `get` except that if the resolved value is a
* function it's invoked with the `this` binding of its parent object and
* its result is returned.
*
* @static
* @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path of the property to resolve.
@@ -17,18 +16,18 @@ import toKey from './_toKey.js';
* @returns {*} Returns the resolved value.
* @example
*
* var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
* var object = { 'a': [{ 'b': { 'c1': 3, 'c2': constant(4) } }] };
*
* _.result(object, 'a[0].b.c1');
* result(object, 'a[0].b.c1');
* // => 3
*
* _.result(object, 'a[0].b.c2');
* result(object, 'a[0].b.c2');
* // => 4
*
* _.result(object, 'a[0].b.c3', 'default');
* result(object, 'a[0].b.c3', 'default');
* // => 'default'
*
* _.result(object, 'a[0].b.c3', _.constant('default'));
* result(object, 'a[0].b.c3', constant('default'));
* // => 'default'
*/
function result(object, path, defaultValue) {