File manager - Edit - /usr/local/lib/node_modules/bower/lib/node_modules/bower-config/node_modules/mout/src/string/repeat.js
Back
define(['../lang/toString', '../number/toInt'], function(toString, toInt){ /** * Repeat string n times */ function repeat(str, n){ var result = ''; str = toString(str); n = toInt(n); if (n < 1) { return ''; } while (n > 0) { if (n % 2) { result += str; } n = Math.floor(n / 2); str += str; } return result; } return repeat; });
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings