common_strings | UI-Router
Options
All
  • Public
  • Public/Protected
  • All
Menu

External module common_strings

module

common_strings

Index

Variables

stringifyPatternFn: any

Functions

  • _fromJson(json: string): any
  • _toJson(obj: Object): string
  • beforeAfterSubstr(char: string): (Anonymous function)
  • Returns a function that splits a string on a character or substring

  • Returns a function that splits a string on a character or substring

    Parameters

    • char: string

    Returns (Anonymous function)


  • functionToString(fn: Function): any
  • kebobString(camelCase: string): string
  • maxLength(max: number, str: string): string
  • Returns a string shortened to a maximum length

  • Returns a string shortened to a maximum length

    If the string is already less than the max length, return the string. Else return the string, shortened to max - 3 and append three dots ("...").

    Parameters

    • max: number
      :

      the maximum length of the string to return

    • str: string
      :

      the input string

    Returns string


  • padString(length: number, str: string): string
  • Returns a string, with spaces added to the end, up to a desired str length

  • Returns a string, with spaces added to the end, up to a desired str length

    If the string is already longer than the desired length, return the string. Else returns the string, with extra spaces on the end, such that it reaches length characters.

    Parameters

    • length: number
      :

      the desired length of the string to return

    • str: string
      :

      the input string

    Returns string


  • promiseToString(p: Promise<any>): string
  • stringify(o: Object): string
  • stringifyPattern(value: any): any

Generated using TypeDoc