mirror of
https://github.com/S2-/gitlit
synced 2025-08-04 05:10:05 +02:00
remove node_modules
This commit is contained in:
24
app/node_modules/repeating/index.js
generated
vendored
24
app/node_modules/repeating/index.js
generated
vendored
@@ -1,24 +0,0 @@
|
||||
'use strict';
|
||||
var isFinite = require('is-finite');
|
||||
|
||||
module.exports = function (str, n) {
|
||||
if (typeof str !== 'string') {
|
||||
throw new TypeError('Expected `input` to be a string');
|
||||
}
|
||||
|
||||
if (n < 0 || !isFinite(n)) {
|
||||
throw new TypeError('Expected `count` to be a positive finite number');
|
||||
}
|
||||
|
||||
var ret = '';
|
||||
|
||||
do {
|
||||
if (n & 1) {
|
||||
ret += str;
|
||||
}
|
||||
|
||||
str += str;
|
||||
} while ((n >>= 1));
|
||||
|
||||
return ret;
|
||||
};
|
Reference in New Issue
Block a user