Find the largest and the smallest number in an array
JavaScript (ES6), 54 56
Edit 2 bytes saved thx @Neil
Note: x===+x is true if and only if x is a number
a=&gt;[Math.max(...a=a.filter(x=&gt;x===+x)),Math.min(...a)]