Code coverage report for src/uniq.js

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

All files » src/ » uniq.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14  6   58   32                
function *uniq(xs) {
    let seen = {};
 
    for (let x of xs) {
        if (!seen[x]) {
            seen[x] = true;
 
            yield x;
        }
    }
}
 
export default uniq;