Edits findIndices extension on Array and adds global function with similar behavior.