W3cubDocs

/RxJS

zip

function deprecated

Deprecation Notes

Deprecated in favor of static zip.

zip<T, R>(...observables: Array<ObservableInput<any> | ((...values: Array<any>) => R)>): OperatorFunction<T, R>

Parameters

observables

Type: Array | ((...values: Array) => R)>.

Returns

OperatorFunction<T, R>

Overloads

zip(project: (v1: T) => R): OperatorFunction<T, R>

Parameters

project

Type: (v1: T) => R.

Returns

OperatorFunction<T, R>

zip(v2: ObservableInput<T2>, project: (v1: T, v2: T2) => R): OperatorFunction<T, R>

Parameters

v2

Type: ObservableInput.

project

Type: (v1: T, v2: T2) => R.

Returns

OperatorFunction<T, R>

zip(v2: ObservableInput<T2>, v3: ObservableInput<T3>, project: (v1: T, v2: T2, v3: T3) => R): OperatorFunction<T, R>

Parameters

v2

Type: ObservableInput.

v3

Type: ObservableInput.

project

Type: (v1: T, v2: T2, v3: T3) => R.

Returns

OperatorFunction<T, R>

zip(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, project: (v1: T, v2: T2, v3: T3, v4: T4) => R): OperatorFunction<T, R>

Parameters

v2

Type: ObservableInput.

v3

Type: ObservableInput.

v4

Type: ObservableInput.

project

Type: (v1: T, v2: T2, v3: T3, v4: T4) => R.

Returns

OperatorFunction<T, R>

zip(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, project: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5) => R): OperatorFunction<T, R>

Parameters

v2

Type: ObservableInput.

v3

Type: ObservableInput.

v4

Type: ObservableInput.

v5

Type: ObservableInput.

project

Type: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5) => R.

Returns

OperatorFunction<T, R>

zip(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>, project: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6) => R): OperatorFunction<T, R>

Parameters

v2

Type: ObservableInput.

v3

Type: ObservableInput.

v4

Type: ObservableInput.

v5

Type: ObservableInput.

v6

Type: ObservableInput.

project

Type: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6) => R.

Returns

OperatorFunction<T, R>

zip(v2: ObservableInput<T2>): OperatorFunction<T, [T, T2]>

Parameters

v2

Type: ObservableInput.

Returns

OperatorFunction<T, [T, T2]>

zip(v2: ObservableInput<T2>, v3: ObservableInput<T3>): OperatorFunction<T, [T, T2, T3]>

Parameters

v2

Type: ObservableInput.

v3

Type: ObservableInput.

Returns

OperatorFunction<T, [T, T2, T3]>

zip(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>): OperatorFunction<T, [T, T2, T3, T4]>

Parameters

v2

Type: ObservableInput.

v3

Type: ObservableInput.

v4

Type: ObservableInput.

Returns

OperatorFunction<T, [T, T2, T3, T4]>

zip(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>): OperatorFunction<T, [T, T2, T3, T4, T5]>

Parameters

v2

Type: ObservableInput.

v3

Type: ObservableInput.

v4

Type: ObservableInput.

v5

Type: ObservableInput.

Returns

OperatorFunction<T, [T, T2, T3, T4, T5]>

zip(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>): OperatorFunction<T, [T, T2, T3, T4, T5, T6]>

Parameters

v2

Type: ObservableInput.

v3

Type: ObservableInput.

v4

Type: ObservableInput.

v5

Type: ObservableInput.

v6

Type: ObservableInput.

Returns

OperatorFunction<T, [T, T2, T3, T4, T5, T6]>

zip(...observables: Array<ObservableInput<T> | ((...values: Array<T>) => R)>): OperatorFunction<T, R>

Parameters

observables

Type: Array | ((...values: Array) => R)>.

Returns

OperatorFunction<T, R>

zip(array: Array<ObservableInput<T>>): OperatorFunction<T, R>

Parameters

array

Type: Array>.

Returns

OperatorFunction<T, R>

zip(array: Array<ObservableInput<TOther>>, project: (v1: T, ...values: Array<TOther>) => R): OperatorFunction<T, R>

Parameters

array

Type: Array>.

project

Type: (v1: T, ...values: Array) => R.

Returns

OperatorFunction<T, R>

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