Function alignString

  • Aligns a string based on all possible values.

    Parameters

    • value: any

      the value to be aligned.

    • align: "center" | "left" | "right"

      whether to align left right or center relative to all possible values.

    • values: string[]

      the possible values which alignment is relative to.

    Returns string