@s-libs/micro-dash
    Preparing search index...

    Function pad

    • Pads string on the left and right sides if it's shorter than length. Padding characters are truncated if they can't be evenly divided by length.

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 4,239 bytes
      • Micro-dash: 97 bytes

      Parameters

      • s: string
      • length: number
      • Optionalchars: string

      Returns string