Given the following array:
var things = ['sandwich', 17, 'fake@sample.com', 3, 'horse', 'octothorpe', 'anotheremail@sample.com', '!invalid_garbage@sample.com'];
Sort the array into three others, one of numbers, one of strings, and one of valid email addresses. Discard the invalid address.
I’ll leave it up to you to come up with a correct
isEmailfunction.