W3cubDocs

/RxJS

zip

function deprecated operator

Deprecation Notes

Replaced with zipWith. Will be removed in v8.

zip<T, R>(...sources: (ObservableInput<any> | ((...values: any[]) => R))[]): OperatorFunction<T, any>

Parameters

sources (ObservableInput<any> | ((...values: any[]) => R))[]

Returns

OperatorFunction<T, any>

Overloads

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

Parameters

otherInputs [...ObservableInputTuple<A>]

Returns

OperatorFunction<T, Cons<T, A>>

zip(otherInputsAndProject: [...ObservableInputTuple<A>], project: (arg: T, ...rest: A) => R): OperatorFunction<T, R>

Parameters

otherInputsAndProject [...ObservableInputTuple<A>]
project (arg: T, ...rest: A) => R

Returns

OperatorFunction<T, R>

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

Parameters

otherInputs [...ObservableInputTuple<A>]

Returns

OperatorFunction<T, Cons<T, A>>

zip(...otherInputsAndProject: [...ObservableInputTuple<A>, (arg: T, ...rest: A) => R]): OperatorFunction<T, R>

Parameters

otherInputsAndProject [...ObservableInputTuple<A>, (arg: T, ...rest: A) => R]

Returns

OperatorFunction<T, R>

© 2015–2022 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