Revision: 62855
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 18, 2013 22:01 by chris5marsh
Initial Code
if (x%1 != 0) { // Do something }
Initial URL
clevermod
Initial Description
I have an array of numbers between 0 and 1, and I want to remove 0 and 1 from a for-each loop. Instead of <code>if (x != 0 || x != 1) {}</code>, this seems nicer:
Initial Title
Omit largest and smallest numbers from function
Initial Tags
Initial Language
JavaScript