Function repeat

  • Loops the value t to keep it within length.

    Parameters

    • t: number
    • length: number

    Returns number