DEV Community

Math.min array needs spread operator.

thebronxsystem on September 30, 2020

Hello all, I can not confused why Math.min only works on array if you use the spread operator. I tried googling and reading mdn docs. const arr...
Collapse
 
javierriveros profile image
Javier Riveros

Math.min is expecting two or more numbers passed as parameter instead of an array