Skip to main content

String padding

Less than 1 minutefeaturees-proposalmissing-example

String paddingopen in new window

Types

interface String {
  /**@param fillStr @default " " */
  padStart(length: number, fillStr?: string): string;
  /**@param fillStr @default " " */
  padEnd(length: number, fillStr?: string): string;
}

Entry points

core-js/proposals/string-padding