• Clamp a number to the index range of an array

    参数

    • n: number
    • arr: readonly unknown[]

    返回 number