Options
All
  • Public
  • Public/Protected
  • All
Menu

Type aliases

Type aliases

Concat

Concat<L, L1>: [L [], L1 []]

Attach L1 at the end of L

Type parameters

  • L: List

    to concat with

  • L1: List

    to be attached

returns

List

example

import {L} from 'ts-toolbelt'

type test0 = L.Concat<[1, 2], [3, 4]> // [1, 2, 3, 4]
type test1 = L.Concat<[1, 2], [[3], 4]> // [1, 2, [3], 4]
type test2 = L.Concat<[1, 2], number[]> // [1, 2, ...number[]]
type test3 = L.Concat<readonly [1, 2], readonly [3]> // [1, 2, 3]

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.