Library API
    Preparing search index...

    Function padString

    • Pads a numeric or string value with non-breaking spaces. Useful for right-aligning displays in monospace environments.

      Parameters

      • str: string | number | bigint

        The value to pad

      • pad: number = 6

        The target length (default: 6)

      Returns string

      The right-aligned padded string