loading...

re: Is reduce() bad? VIEW POST

FULL DISCUSSION
 

Just to say in the example you give, this would be faster than all of those indexOf calls!

function intersection(...params) {
    return Array.from(new Set(params.flat(Infinity)))
}
code of conduct - report abuse