Options
All
  • Public
  • Public/Protected
  • All
Menu

Module lib/splitFirst

Index

Functions

Functions

splitFirst

  • splitFirst(str: string, delim: string): string[]
  • Split a string of the first occurrence of a delimiter

    Parameters

    • str: string

      The string to split

    • delim: string

      The delimiter to split on

    Returns string[]

    The array containing the split string

Generated using TypeDoc