Recent Docs Activity
View all activityPage | Date | Comment |
---|---|---|
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)); |