Last Updated: February 25, 2016
·
460
· benhowdle89

Filter an array for "truthys" in JavaScript

var newArray = oldArray.filter(Boolean).length;