@univerjs/core v0.4.2 • Docs
Function: searchArray()
function searchArray(arr, num): number
return the first index which arr[index] > num ex: searchArray([1, 3, 5, 7, 9], 7) = 4
Parameters
Parameter | Type |
---|---|
arr | number [] |
num | number |
Returns
number
index
Defined in
submodules/univer/packages/core/src/shared/array-search.ts:87 (opens in a new tab)