1 min readJan 28, 2019
Should also mention the issue of an empty array.
let arr = []
console.log(Math.max(…arr)) // returns -Infinity !!!!
Should also mention the issue of an empty array.
let arr = []
console.log(Math.max(…arr)) // returns -Infinity !!!!
Physicist • Soft Dev • ☕ Junkie • I bring you the latest in science, tech, health, economics & personal growth. To read all: https://youneshenni.substack.com/