As my question states how would I determine the index of the last item in JavaScript array with a value > 0
So if myarray = [12, 35, 56, 0, 42, 0]
How would I find the index of the last positive integer in this array? i.e in this instance the answer would be 4 (no. 42).