dist/iterable/operators.js
/** Play items from a set, skipping ones that do not change */
Play items from a set, skipping ones that do not change
Play items from a set skipping ones that do not change
function* distinctUntilChanged(it) {
    let prev = undefined;
    for (const item of it) {
        if (item === prev) {
            continue;
        }
        prev = item;
        yield item;
    }
}
function * distinctUntilChanged ( it ) { let prev = undefined ; for ( const item of it ) { if ( item === prev ) { continue ; } prev = item ; yield item ; } }
Play items from a set, skipping ones that do not change
Play items from a set skipping ones that do not change