Options
All
  • Public
  • Public/Protected
  • All
Menu

Module array/concat

Index

References

Functions

References

Renames and re-exports concat

Functions

  • concat(list1: string, list2: string): string
  • concat<U, V>(list1: ArrayLike<U>, list2: ArrayLike<V>): (U | V)[]
  • concat(list1: string): (list2: string) => string
  • concat<U>(list1: ArrayLike<U>): <V>(list2: ArrayLike<V>) => (U | V)[]
  • Returns the result of concatenating the given arrays or strings.

    example
     concat('ABC', 'DEF');             // 'ABCDEF'
    concat([4, 5, 6], [1, 2, 3]); //=> [4, 5, 6, 1, 2, 3]
    concat([], []); //=> []

    Parameters

    • list1: string
    • list2: string

    Returns string

    A list consisting of the elements of firstList followed by the elements of secondList.

  • Returns the result of concatenating the given arrays or strings.

    example
     concat('ABC', 'DEF');             // 'ABCDEF'
    concat([4, 5, 6], [1, 2, 3]); //=> [4, 5, 6, 1, 2, 3]
    concat([], []); //=> []

    Type parameters

    • U

    • V

    Parameters

    • list1: ArrayLike<U>
    • list2: ArrayLike<V>

    Returns (U | V)[]

    A list consisting of the elements of firstList followed by the elements of secondList.

  • Returns the result of concatenating the given arrays or strings.

    example
     concat('ABC', 'DEF');             // 'ABCDEF'
    concat([4, 5, 6], [1, 2, 3]); //=> [4, 5, 6, 1, 2, 3]
    concat([], []); //=> []

    Parameters

    • list1: string

    Returns (list2: string) => string

    A list consisting of the elements of firstList followed by the elements of secondList.

      • (list2: string): string
      • Parameters

        • list2: string

        Returns string

  • Returns the result of concatenating the given arrays or strings.

    example
     concat('ABC', 'DEF');             // 'ABCDEF'
    concat([4, 5, 6], [1, 2, 3]); //=> [4, 5, 6, 1, 2, 3]
    concat([], []); //=> []

    Type parameters

    • U

    Parameters

    • list1: ArrayLike<U>

    Returns <V>(list2: ArrayLike<V>) => (U | V)[]

    A list consisting of the elements of firstList followed by the elements of secondList.

      • <V>(list2: ArrayLike<V>): (U | V)[]
      • Type parameters

        • V

        Parameters

        • list2: ArrayLike<V>

        Returns (U | V)[]

Generated using TypeDoc