index_of_value#
- beatmap.utils.index_of_value(array, value)#
Finds the index of a value in an array most similar to value passed.
- Parameters:
- arrayarray
Array of values.
- valuenumeric
Value you wish to find in array.
- Returns:
- idxarray
For 2D idx[0] = i index, idx[1] = j index.