collection-abstraction/pairs

View on GitHub
src/iterableFromMap.js

Summary

Maintainability
A
0 mins
Test Coverage
export default function* iterableFromMap(map) {
    for (const [A, others] of map.entries()) {
        for (const B of others.values()) yield [A, B];
    }
}