Code coverage report for src/drop.js

Statements: 100% (43 / 43)      Branches: 100% (22 / 22)      Functions: 100% (2 / 2)      Lines: 100% (4 / 4)      Ignored: 6 statements, 4 branches     

All files » src/ » drop.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14  5   23         23          
function *drop(xs, n) {
    let i = 0;
 
    for (let x of xs) {
        if (i >= n) {
            yield x;
        }
 
        i += 1;
    }
}
 
export default drop;