1
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
var staticParseInt = require('./staticParseInt')
|
||||
|
||||
function helperStringRepeat (str, count) {
|
||||
if (str.repeat) {
|
||||
return str.repeat(count)
|
||||
}
|
||||
var list = isNaN(count) ? [] : new Array(staticParseInt(count))
|
||||
return list.join(str) + (list.length > 0 ? str : '')
|
||||
}
|
||||
|
||||
module.exports = helperStringRepeat
|
||||
Reference in New Issue
Block a user