On this page

Function findNextEntryAndIndexWithValue

  • Looks ahead in an array for the next entry that is not null.

    Parameters

    • arr: NumericArrayWithNull

      The array to search through

    • currentIndex: number

      The index to start searching from

    Returns (number | null)[]

    [index, value] A tuple containing the index of the next entry and its value, or null if not found

Was this helpful?
SDK JS
Reference
findNextEntryAndIndexWithValue