Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/string"

Index

Variables

Const STR_EMPTY

STR_EMPTY: "" = ""

Empty string constant

Functions

strEndsWith

  • strEndsWith(str: string, suffix: string): boolean
  • Indicates if the given string ends with the given suffix

    export

    Parameters

    • str: string
    • suffix: string

    Returns boolean

strIsNullOrEmpty

  • strIsNullOrEmpty(str: string | null | undefined): str
  • Indicates if the given string is null or empty

    export

    Parameters

    • str: string | null | undefined

    Returns str

strReplaceAll

  • strReplaceAll(str: string, find: string, replace: string): string
  • Replaces all occurrences of the given string with the specified replacement in the target string

    since

    0.12

    Parameters

    • str: string
    • find: string
    • replace: string

    Returns string

strTrim

  • strTrim(str: string): string
  • Returns a trimmed version of the given string

    since

    0.12.5

    Parameters

    • str: string

      The string to trim

    Returns string

Generated using TypeDoc