Buckets:
| module.exports = function (xs, fn) { | |
| var res = []; | |
| for (var i = 0; i < xs.length; i++) { | |
| var x = fn(xs[i], i); | |
| if (isArray(x)) res.push.apply(res, x); | |
| else res.push(x); | |
| } | |
| return res; | |
| }; | |
| var isArray = Array.isArray || function (xs) { | |
| return Object.prototype.toString.call(xs) === '[object Array]'; | |
| }; | |
Xet Storage Details
- Size:
- 345 Bytes
- Xet hash:
- 27d8fc73415312e470688840a47e6a7616ed20350d55cb68d6b5307ff4cc5b2f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.