• Returns a value that alternates between 0 and length.

    Parameters

    • x: number

      The value to pingpong.

    • Optionallength: number

      The positive value the export function will pingpong to. Default is 1.

    Returns number