Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StringUtils

Hierarchy

  • StringUtils

Index

Methods

Static contains

  • contains(value: string, searchTerm: string, caseInsensitive?: boolean): boolean
  • Returns true if the value contains the searchTerm. By default, this function is case sensitive.

    Parameters

    • value: string

      The value to be searched.

    • searchTerm: string

      The value to be searched for.

    • Default value caseInsensitive: boolean = false

      Value indicating if the match should be case sensitive.

    Returns boolean

Static endsWith

  • endsWith(value: string, searchTerm: string, caseInsensitive?: boolean): boolean
  • Returns true if the value ends with the searchTerm. By default, this function is case sensitive.

    Parameters

    • value: string

      The value to be searched.

    • searchTerm: string

      The suffix to be searched for.

    • Default value caseInsensitive: boolean = false

      Value indicating if the match should be case sensitive.

    Returns boolean

Static startsWith

  • startsWith(value: string, searchTerm: string, caseInsensitive?: boolean): boolean
  • Returns true if the value starts with the searchTerm. By default, this function is case sensitive.

    Parameters

    • value: string

      The value to be searched.

    • searchTerm: string

      The prefix to be searched for.

    • Default value caseInsensitive: boolean = false

      Value indicating if the match should be case sensitive.

    Returns boolean

Generated using TypeDoc