UNPKG

composr-cli

Version:
14 lines (13 loc) 311 B
'use strict'; module.exports = function syncFor(index, len, status, func) { func(index, status, function (res) { if (res === 'next') { index++; if (index < len) { syncFor(index, len, 'r', func); } else { return func(index, 'done', function () {}); } } }); };