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:
15
ng2-components/ng2-alfresco-documentslist/dist/node_modules/filled-array/index.js
generated
vendored
Normal file
15
ng2-components/ng2-alfresco-documentslist/dist/node_modules/filled-array/index.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
module.exports = function (item, n) {
|
||||
var ret = new Array(n);
|
||||
var isFn = typeof item === 'function';
|
||||
|
||||
if (!isFn && typeof ret.fill === 'function') {
|
||||
return ret.fill(item);
|
||||
}
|
||||
|
||||
for (var i = 0; i < n; i++) {
|
||||
ret[i] = isFn ? item(i, n, ret) : item;
|
||||
}
|
||||
|
||||
return ret;
|
||||
};
|
Reference in New Issue
Block a user