I have a collection of data here, you can see below.
What I want is to get the index of that element that has a unique value in array.
var setArray = [ false, true, false, false ]
// Sample result will be 1, the index of unique value in array is true
// and has a index of 1
// code here to get the index...
How can I solve this?