Posted By

chris5marsh on 03/18/13


Versions (?)

Omit largest and smallest numbers from function

 / Published in: JavaScript

URL: clevermod

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 if (x != 0 || x != 1) {}, this seems nicer:

Report this snippet  

You need to login to post a comment.