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

@@ -7,22 +7,21 @@ import toString from './toString.js';
* Repeats the given string `n` times.
*
* @static
* @memberOf _
* @since 3.0.0
* @category String
* @param {string} [string=''] The string to repeat.
* @param {number} [n=1] The number of times to repeat the string.
* @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 repeated string.
* @example
*
* _.repeat('*', 3);
* repeat('*', 3);
* // => '***'
*
* _.repeat('abc', 2);
* repeat('abc', 2);
* // => 'abcabc'
*
* _.repeat('abc', 0);
* repeat('abc', 0);
* // => ''
*/
function repeat(string, n, guard) {