I have an object of arrays... The array can contain blanks, how can i create an ANgular filter to remove the blanks to determine the length of the array?
$sc
The other answers didn't work for me and angular-filter doesn't have any specific abilities for this case, but the following worked in my Angular app. No custom filter needed.
arr = ["", "foo", "bar"];
arr.filter(Boolean);
Browser compatability: http://kangax.github.io/compat-table/es5/#Array.prototype.filter