tasks/util/stream.js
function iterateWriteArray () {
    if (!isIterating()) { return undefined; }

    let data = iterateData;
    let content = data.collection[data.i];

    data.i++;

    if (data.i >= data.collection.length) {
        resetIterateData();

        writable.write(content, 'utf8', onWriteFinish);
    } else {
        writable.write(content, 'utf8', iterateWriteArray);
    }
}
function iterateWriteArray () {
    if (!isIterating()) { return undefined; }

    let data = iterateData;
    let content = data.collection[data.i];

    data.i++;

    if (data.i >= data.collection.length) {
        resetIterateData();

        writable.write(content, 'utf8', onWriteFinish);
    } else {
        writable.write(content, 'utf8', iterateWriteArray);
    }
}
function iterateWriteArray ( ) { if ( ! isIterating ( ) ) { return undefined ; } let data = iterateData ; let content = data . collection [ data . i ] ; data . i ++ ; if ( data . i >= data . collection . length ) { resetIterateData ( ) ; writable . write ( content , 'utf8' , onWriteFinish ) ; } else { writable . write ( content , 'utf8' , iterateWriteArray ) ; } }
Recursively write content in array.

@function iterateWriteArray
@api private
Recursively write content in array .