mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Remove references to _.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user