Skip to content

Function interleave() ​

interleave<Type>(item: Type, array: Type[]): Type[]

Source: array.utils.ts

Inserts an item in between every item in an array.

Type Parameters ​

Type ​

Type

Parameters ​

item ​

Type

The item to insert.

array ​

Type[]

The array to insert into.

Returns ​

Type[]

Built by Prozilla