I find it bizarre that Array.Find(...) method only finds the first matched entry rather than all matching entries. Coming from other languages such as C#, Java, JS, etc. where the find method (called filter) produces a list/array of found entries, I find this behaviour is not what I would've expected if my array has duplicates.
Now sure, I could simply write a custom function using the for loop and iterate through the array to find all matching values, but shouldn't this be the default though?
Example
var array = [1,2,3,2,5,2,1]
array.find(2)
result indices: array[1], array[3], array[5]
array.find(5)
result indices: array[4]