mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
# add dist
This commit is contained in:
24
ng2-components/ng2-alfresco-documentslist/dist/node_modules/repeating/index.js
generated
vendored
Normal file
24
ng2-components/ng2-alfresco-documentslist/dist/node_modules/repeating/index.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
'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