Options
All
  • Public
  • Public/Protected
  • All
Menu

Module array/join

Index

References

Functions

References

Renames and re-exports join

Functions

  • join(x: string, xs: ArrayLike<any>): string
  • join(x: string): (xs: ArrayLike<any>) => string
  • Returns a string made by inserting the separator between each element and concatenating all the elements into a single string.

    example
     var spacer = join(' ');
    spacer(['a', 2, 3.4]); //=> 'a 2 3.4'
    join('|', [1, 2, 3]); //=> '1|2|3'

    Parameters

    • x: string
    • xs: ArrayLike<any>

    Returns string

    str The string made by concatenating arr with separator.

  • Returns a string made by inserting the separator between each element and concatenating all the elements into a single string.

    example
     var spacer = join(' ');
    spacer(['a', 2, 3.4]); //=> 'a 2 3.4'
    join('|', [1, 2, 3]); //=> '1|2|3'

    Parameters

    • x: string

    Returns (xs: ArrayLike<any>) => string

    str The string made by concatenating arr with separator.

      • (xs: ArrayLike<any>): string
      • Parameters

        • xs: ArrayLike<any>

        Returns string

Generated using TypeDoc