MDN wants to talk to developers like you: https://qsurvey.mozilla.com/s3/8d22564490d8

solaman

Member since
solaman

Recent Docs Activity

View all activity
Page 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));