Pathologic was missing because of a .git folder inside.
[yaffs-website] / node_modules / underscore.string / repeat.js
1 var makeString = require('./helper/makeString');
2 var strRepeat = require('./helper/strRepeat');
3
4 module.exports = function repeat(str, qty, separator) {
5   str = makeString(str);
6
7   qty = ~~qty;
8
9   // using faster implementation if separator is not needed;
10   if (separator == null) return strRepeat(str, qty);
11
12   // this one is about 300x slower in Google Chrome
13   /*eslint no-empty: 0*/
14   for (var repeat = []; qty > 0; repeat[--qty] = str) {}
15   return repeat.join(separator);
16 };