mirror of https://github.com/embarklabs/embark.git
15 lines
284 B
JavaScript
15 lines
284 B
JavaScript
|
var async = require('async');
|
||
|
|
||
|
function asyncEachObject(object, iterator, callback) {
|
||
|
async.each(
|
||
|
Object.keys(object || {}),
|
||
|
function(key, next){
|
||
|
iterator(key, object[key], next);
|
||
|
},
|
||
|
callback
|
||
|
);
|
||
|
}
|
||
|
async.eachObject = asyncEachObject;
|
||
|
|
||
|
module.exports = async;
|