dieumercimvemba's picture
download
raw
349 Bytes
'use strict';
const internals = {};
module.exports = internals.flatten = function (array, target) {
const result = target || [];
for (const entry of array) {
if (Array.isArray(entry)) {
internals.flatten(entry, result);
}
else {
result.push(entry);
}
}
return result;
};

Xet Storage Details

Size:
349 Bytes
·
Xet hash:
3052e731bb1af5e6779066c0056b3e6c92610f7e6855ba92a903004f50968a41

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.