My service returns one array. For example:
return of([1, 2, 3, 4, 5, 6])
I subscribe to it and inside .pipe() I want to separate every 2 values to a different array.
For example:
let result = {
[1, 2],
[3, 4],
[5, 6]
}
How can I achieve this?