Options
All
  • Public
  • Public/Protected
  • All
Menu

Module join

Index

References

Functions Array

References

Renames and re-exports __type

Array Functions

  • join(array: any[], separator?: string): string
  • Converts all elements in array into a string separated by separator.

    since

    5.0.0

    example
    join(['a', 'b', 'c'], '~');
    // => 'a~b~c'

    Parameters

    • array: any[]

      The array to convert.

    • separator: string = ","

      The element separator.

    Returns string

    Returns the joined string.