remove repeatString from util
This commit is contained in:
parent
5b02b658fe
commit
cb547d86bc
1 changed files with 0 additions and 15 deletions
|
|
@ -260,21 +260,6 @@ exports.makeArray = function(number, character) {
|
|||
return newArray;
|
||||
};
|
||||
|
||||
/**
|
||||
* Repeat a string a given number of times.
|
||||
* @param string String to repeat
|
||||
* @param repeat Number of times to repeat
|
||||
*/
|
||||
exports.repeatString = function(string, repeat) {
|
||||
var newstring = '';
|
||||
|
||||
for (var i = 0; i < repeat; i++) {
|
||||
newstring += string;
|
||||
}
|
||||
|
||||
return newstring;
|
||||
};
|
||||
|
||||
/**
|
||||
* Given a row, find the number of leading spaces.
|
||||
* E.g. an array with the string " aposjd" would return 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue