Last Updated: February 25, 2016
·
474
· benhowdle89

Filter an array for "truthys" in JavaScript

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