I have an object which looks like that:
const myObject = {
3723723: null
,3434355: true
,9202002: null
}
Using jQuery grep method I need to get the count of the array where the value is not null.
const result = $.grep(myArray, function (k, v) { return v != null; });
const count = result.length;