Intersperse the the argument bewteen each element of the iterator.
pipe( itr8FromArray([ 'hello', 'world', 'and', 'goodbye' ]), intersperse('|'), // => [ [ 'hello', '|', 'world', '|', 'and', '|', 'goodbye' ] ] );
pipe( itr8FromArray([ 1, 2, 3, 4 ]), intersperse(true), // => [ 1, true, 2, true, 3, true, 4 ] );
Generated using TypeDoc
Intersperse the the argument bewteen each element of the iterator.
Example
Example