dist/iterable/operators.js
/** Skip items in an iterable until the passed predicate fails, then yioeld all items in the iterable */
Skip items in an iterable until the passed predicate fails, then yioeld all items in the iterable
Skip items in an iterable until the passed predicate fails then yioeld all items in the iterable
function skipWhile(predicate) {
    return function* (iterable) {
        let i = 0;
        let canReturn = false;
        for (const item of iterable) {
            if (!canReturn) {
                canReturn = !predicate(item, i);
                if (canReturn) {
                    yield item;
                }
                i = i + 1;
            }
            else {
                yield item;
            }
        }
    };
}
function skipWhile ( predicate ) { return function * ( iterable ) { let i = 0 ; let canReturn = false ; for ( const item of iterable ) { if ( ! canReturn ) { canReturn = ! predicate ( item , i ) ; if ( canReturn ) { yield item ; } i = i + 1 ; } else { yield item ; } } } ; }
Skip items in an iterable until the passed predicate fails, then yioeld all items in the iterable
Skip items in an iterable until the passed predicate fails then yioeld all items in the iterable