This commit is contained in:
Domen Kožar
2020-02-24 13:29:22 +01:00
parent 033d472283
commit 49df04613e
6774 changed files with 1602535 additions and 1 deletions

17
node_modules/left-pad/perf/O(n).js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
'use strict';
module.exports = function (str, len, ch) {
str = str + '';
len = len - str.length;
if (len <= 0) return str;
if (!ch && ch !== 0) ch = ' ';
ch = ch + '';
while (len--) {
str = ch + str;
}
return str;
}