Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

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));