UNPKG

promise-placeholder

Version:

Creates a placeholder object which can be used to keep functions which can be called in parallel and post execution, the values will be assigned at proper places!

10 lines 237 B
module.exports = { iterEx: function iter(o, cb) { Object.entries(o).some(function ([k, v]) { if (v !== null && typeof v === 'object') { iter(v, cb); } }); cb(o); } }