Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface String

Hierarchy

  • String

Index

Methods

contains

  • contains(string: any): boolean
  • Checks whether the string contains a given string.

    method

    String.prototype.contains

    Parameters

    • string: any

      The string to search for

    Returns boolean

    True if the string contains a given string

format

  • format(...args: Array<any>): string
  • Replaces %1, %2 and so on in the string to the arguments.

    method

    String.prototype.format

    Parameters

    • Rest ...args: Array<any>

    Returns string

    A formatted string

padZero

  • padZero(length: number): string
  • Makes a number string with leading zeros.

    method

    String.prototype.padZero

    Parameters

    • length: number

      The length of the output string

    Returns string

    A string with leading zeros

Generated using TypeDoc