lib/inq.js
/**
 * Evaluates all the tasks in the given object in series and returns it.
 *
 * @param value {*} Any value or object to be executed.
 * @returns {Iterator}
 */
Evaluates all the tasks in the given object in series and returns it.
@param value {*} Any value or object to be executed.
@returns {Iterator}
Evaluates all the tasks in the given object in series and returns it . @param value { * } Any value or object to be executed . @returns { Iterator }
function* series(value) {
    if(value instanceof Function) {
        if(Function.isGenerator(value))
            return yield* value()
        else
            return yield value
    }
    if(value instanceof Object) {
        var result = Array.isArray(value) ? [] : {}
        for (var key in value)
            result[key] = yield value[key]
        return result
    }
    else
        return value
}
function * series ( value ) { if ( value instanceof Function ) { if ( Function . isGenerator ( value ) ) return yield * value ( ) else return yield value } if ( value instanceof Object ) { var result = Array . isArray ( value ) ? [ ] : { } for ( var key in value ) result [ key ] = yield value [ key ] return result } else return value }
Evaluates all the tasks in the given object in series and returns it.
Evaluates all the tasks in the given object in series and returns it .