WIP - add extractor, generate snippet_data

This commit is contained in:
Stefan Fejes
2019-08-20 15:52:05 +02:00
parent 88084d3d30
commit cc8f1d8a7a
37396 changed files with 4588842 additions and 133 deletions

16
node_modules/underscore.string/repeat.js generated vendored Normal file
View File

@ -0,0 +1,16 @@
var makeString = require('./helper/makeString');
var strRepeat = require('./helper/strRepeat');
module.exports = function repeat(str, qty, separator) {
str = makeString(str);
qty = ~~qty;
// using faster implementation if separator is not needed;
if (separator == null) return strRepeat(str, qty);
// this one is about 300x slower in Google Chrome
/*eslint no-empty: 0*/
for (var repeat = []; qty > 0; repeat[--qty] = str) {}
return repeat.join(separator);
};