Code coverage report for src/without.js

Statements: 100% (46 / 46)      Branches: 100% (25 / 25)      Functions: 100% (3 / 3)      Lines: 100% (3 / 3)      Ignored: 6 statements, 5 branches     

All files » src/ » without.js
1 2 3 4 5 6 7 8 9 10 11 12 13      12 49                
import includes from './includes';
 
 
function *without(xs, ...args) {
    for (let x of xs) {
        if (!includes(args, x)) {
            yield x;
        }
    }
}
 
export default without;