FunctionsPreferenceGetNextIndexPreferenceGetNextIndex CallablePreferenceGetNextIndex(List: readonly unknown[], Index: number): numberReturns the index of the next preference list item (and wraps back to the start of the list if currently at the end)ParametersList: readonly unknown[]The preference listIndex: numberThe current preference index for the given listReturns numberThe index of the next item in the array, or 0 if the array is currently at the last item
Returns the index of the next preference list item (and wraps back to the start of the list if currently at the end)