Options
All
  • Public
  • Public/Protected
  • All
Menu

Module string/split

Index

References

Functions

References

Renames and re-exports split

Functions

  • split(delim: Pattern, str: string): string[]
  • split(delim: Pattern): (str: string) => string[]
  • Splits a string into an array of strings based on the given separator.

    example
     split('.', 'a.b.c.xyz.d'); //=> ['a', 'b', 'c', 'xyz', 'd']
    

    Parameters

    • delim: Pattern

      The pattern.

    • str: string

      The string to separate into an array.

    Returns string[]

    The array of strings from str separated by str.

  • Splits a string into an array of strings based on the given separator.

    example
     split('.', 'a.b.c.xyz.d'); //=> ['a', 'b', 'c', 'xyz', 'd']
    

    Parameters

    Returns (str: string) => string[]

    The array of strings from str separated by str.

      • (str: string): string[]
      • Parameters

        • str: string

        Returns string[]

Generated using TypeDoc