Last Updated: February 25, 2016
·
477
· benhowdle89

Filter an array for "truthys" in JavaScript

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