re: Understanding the Spread Operator in JavaScript VIEW POST

FULL DISCUSSION
 
const randoms = function*(x){while(true)yield Math.random()*x|0}
const [a, b, c] = randoms (1000)
console.log(a, b, c)

open eye crying laughing emoji

code of conduct - report abuse