zip

function deprecated

Deprecation Notes

Replaced with zipWith. Will be removed in v8.

zip<T, R>(...sources: (Observable<any> | InteropObservable<any> | AsyncIterable<any> | PromiseLike<any> | ArrayLike<any> | Iterable<...> | ReadableStreamLike<...> | ((...values: any[]) => R))[]): OperatorFunction<T, any>

Deprecation Notes

Replaced with zipWith. Will be removed in v8.

Parameters

sources

Type: (Observable | InteropObservable | AsyncIterable | PromiseLike | ArrayLike | Iterable<...> | ReadableStreamLike<...> | ((...values: any[]) => R))[].

Returns

OperatorFunction<T, any>

Overloads

zip(otherInputs: any[]): OperatorFunction<T, Cons<T, A>>

Deprecation Notes

Replaced with zipWith. Will be removed in v8.

Parameters

otherInputs

Type: any[].

Returns

OperatorFunction<T, Cons<T, A>>

zip(otherInputsAndProject: any[], project: (...values: Cons<T, A>) => R): OperatorFunction<T, R>

Deprecation Notes

Replaced with zipWith. Will be removed in v8.

Parameters

otherInputsAndProject

Type: any[].

project

Type: (...values: Cons) => R.

Returns

OperatorFunction<T, R>

zip(...otherInputs: any[]): OperatorFunction<T, Cons<T, A>>

Deprecation Notes

Replaced with zipWith. Will be removed in v8.

Parameters

otherInputs

Type: any[].

Returns

OperatorFunction<T, Cons<T, A>>

zip(...otherInputsAndProject: [any, (...values: Cons<T, A>) => R]): OperatorFunction<T, R>

Deprecation Notes

Replaced with zipWith. Will be removed in v8.

Parameters

otherInputsAndProject

Type: [any, (...values: Cons) => R].

Returns

OperatorFunction<T, R>

© 2015–2021 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors.
Code licensed under an Apache-2.0 License. Documentation licensed under CC BY 4.0.
https://rxjs.dev/api/operators/zip