63
rated 0 times
[
70]
[
7]
/ answers: 1 / hits: 122020
/ 12 Years ago, wed, march 28, 2012, 12:00:00
Given following array:
var arr = [undefined, undefined, 2, 5, undefined, undefined];
I'd like to get the count of elements which are defined (i.e.: those which are not undefined
). Other than looping through the array, is there a good way to do this?
More From » undefined