Options
All
  • Public
  • Public/Protected
  • All
Menu

Module string/startsWith

Index

References

Functions

References

Renames and re-exports startsWith

Functions

  • startsWith(prefix: string, str: string): boolean
  • startsWith(prefix: string): (str: string) => boolean
  • Checks if a string starts with the provided prefix

    example
     startsWith('a', 'abc');                //=> true
    startsWith('b', 'abc'); //=> false

    Parameters

    • prefix: string
    • str: string

    Returns boolean

  • Checks if a string starts with the provided prefix

    example
     startsWith('a', 'abc');                //=> true
    startsWith('b', 'abc'); //=> false

    Parameters

    • prefix: string

    Returns (str: string) => boolean

      • (str: string): boolean
      • Parameters

        • str: string

        Returns boolean

Generated using TypeDoc