Code coverage report for src/concat.js

Statements: 100% (69 / 69)      Branches: 100% (35 / 35)      Functions: 100% (2 / 2)      Lines: 100% (4 / 4)      Ignored: 12 statements, 8 branches     

All files » src/ » concat.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15          12 12 23              
/**
 * Yields the values from all given iterables.
 * @params {...*} args - The iterables to concat.
 * @returns {*} - The values from the iterables.
 */
function *concat(...args) {
    for (let xs of args) {
        for (let x of xs) {
            yield x;
        }
    }
}
 
export default concat;