Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "appendLeft"

module

formatter

Index

Functions

Functions

appendLeft

  • appendLeft(source: string | number, minLength: number, appender?: string | number): string
  • Parameters

    • source: string | number

      source string.

    • minLength: number
    • Default value appender: string | number = 0

      item appended on left side.

      appendLeft('abc', 1) === 'abc'
      appendLeft('abc', 5) === '00abc'
      appendLeft('abc', 5, 'QA') === 'QAQAabc'

    Returns string

Generated using TypeDoc