dist/iterable/operators.js
/** Take only the last item in an iterable sequence */
Take only the last item in an iterable sequence
Take only the last item in an iterable sequence
function last(iterable) {
    let last = undefined;
    for (const item of iterable) {
        last = item;
    }
    return last;
}
function last ( iterable ) { let last = undefined ; for ( const item of iterable ) { last = item ; } return last ; }
Take only the last item in an iterable sequence
Take only the last item in an iterable sequence