Lookup This API allows you to find an array element which is great than or equal to the argument you pass to the lookup function. This API will return the index of the value if it has found a match, otherwise it will return 0.it.
An optional resulting indicators object can specify if any elements in the flags array should be set. The resulting indicators object can have these properties:
- equal (Number) - identifies the flag number to set if an exact match is found
- high (Number) - identifies the flag number to set if the nearest higher entry is found
Parameters
- Search argument
- Array
- Start index (OR resulting indicators object)
- Resulting indicators object (can be nulloptional)
Return Value
Returns 0 if no matching element is found; otherwise, the element index is returned.
...