3 ms·
For me it looks like this in JavaScript: const [a, b] = permutations(array1, array2).filter(([a, b]) => a*b === 8).slice(0,2);
by greencore 8y ago
For me it looks like this in JavaScript:
const [a, b] = permutations(array1, array2).filter(([a, b]) => a*b === 8).slice(0,2);