Aggiornamenti alla documentazione
Mostra tutte le attivitàPagina | Data | Commento |
---|---|---|
Array.from() |
I'd remove the zero as following ternary operator is good->if (number === 0 || !isFinite(number)) { return number; } could reduce operations, be more clean-> return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number)); | |
Array.from() |
if (number === 0 || !isFinite(number)) { return number; } return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number)); |