prorm API Reference
    Preparing search index...

    Function pad

    • Pad string to specified length

      Parameters

      • str: string
      • length: number
      • char: string = ' '
      • direction: "left" | "right" | "both" = 'left'

      Returns string