arudradey's picture
download
raw
727 Bytes
function pluginsFrom(plugins) {
var flatPlugins = {
level1Value: [],
level1Property: [],
level2Block: []
};
plugins = plugins || [];
flatPlugins.level1Value = plugins
.map(function(plugin) { return plugin.level1 && plugin.level1.value; })
.filter(function(plugin) { return plugin != null; });
flatPlugins.level1Property = plugins
.map(function(plugin) { return plugin.level1 && plugin.level1.property; })
.filter(function(plugin) { return plugin != null; });
flatPlugins.level2Block = plugins
.map(function(plugin) { return plugin.level2 && plugin.level2.block; })
.filter(function(plugin) { return plugin != null; });
return flatPlugins;
}
module.exports = pluginsFrom;

Xet Storage Details

Size:
727 Bytes
·
Xet hash:
e60ed7d05a7e55039780c4538435b696e37f310b05b38071983b88c6ff4a1dd0

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