Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async.reduce(suppliers, 0, getStorage, function (err, suma_total) {
- console.log(total);
- })
- function getStorage(suma_parcial, supplier, callback) {
- supplier.magia(function(err, espacio_ocupado_por_supplier) {
- callback(err, suma_parcial + espacio_ocupado_por_supplier);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement