Last Updated: February 25, 2016
·
496
· benhowdle89

Filter an array for "truthys" in JavaScript

var newArray = oldArray.filter(Boolean);