I have an array that will most likely always look like:
[null, null, null, null, null]
sometimes this array might change to something like:
["helloworld", null, null, null, null]
I know I could use a for loop for this but is there a way to use indexOf to check if something in an array that is not equal to null.
I am looking for something like:
var index = indexof(!null);