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

@@ -12,22 +12,21 @@ const reTrim = /^\s+|\s+$/g;
* Removes leading and trailing whitespace or specified characters from `string`.
*
* @static
* @memberOf _
* @since 3.0.0
* @category String
* @param {string} [string=''] The string to trim.
* @param {string} [chars=whitespace] The characters to trim.
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @param- {Object} [guard] Enables use as an iteratee for methods like `map`.
* @returns {string} Returns the trimmed string.
* @example
*
* _.trim(' abc ');
* trim(' abc ');
* // => 'abc'
*
* _.trim('-_-abc-_-', '_-');
* trim('-_-abc-_-', '_-');
* // => 'abc'
*
* _.map([' foo ', ' bar '], _.trim);
* map([' foo ', ' bar '], trim);
* // => ['foo', 'bar']
*/
function trim(string, chars, guard) {