Function pad_string

  • 指定された文字列や数値に対してゼロパディングを行う

    Parameters

    • target: string | number

      パディング対象の数値または文字列

    • length: number

      パディング後の文字列の長さ

    • fill_string: string = "0"

      パディングに使用する文字

    Returns string

    パディングされた文字列