Returns a Stream that merges elements from both iterables by taking one element from each, passing them to the function, and yielding the result.
The first iterable to merge.
The second iterable to merge.
The value or factory to use when one iterable is done.
The function that merges the elements.
A Stream that merges elements from both iterables.
const result = zipLongest('ABCD', 'xy', ' ', (a, b) => `${a}${b}`);console.log([...result]); // ['Ax', 'By', 'C ', 'D '] Copy
const result = zipLongest('ABCD', 'xy', ' ', (a, b) => `${a}${b}`);console.log([...result]); // ['Ax', 'By', 'C ', 'D ']
Returns a Stream that merges elements from both iterables by taking one element from each, passing them to the function, and yielding the result.