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

External module common_strings

module

common_strings

Index

Variables

stringifyPatternFn: function

Type declaration

    • (val: any): string
    • Parameters

      • val: any

      Returns string

Functions

  • _fromJson(json: string): any
  • _toJson(obj: Obj): 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: any): string
  • stringifyPattern(value: any): string

Generated using TypeDoc