@@ -93,8 +93,9 @@ export function combineLatest<R>(...observables: Array<ObservableInput<any> | ((
9393 * of values, but values themselves. That means default `project` can be imagined
9494 * as function that takes all its arguments and puts them into an array.
9595 *
96- *
97- * @example <caption>Combine two timer Observables</caption>
96+ * ## Examples
97+ * ### Combine two timer Observables
98+ * ```javascript
9899 * const firstTimer = Rx.Observable.timer(0, 1000); // emit 0, 1, 2... after every second, starting from now
99100 * const secondTimer = Rx.Observable.timer(500, 1000); // emit 0, 1, 2... after every second, starting 0,5s from now
100101 * const combinedTimers = Rx.Observable.combineLatest(firstTimer, secondTimer);
@@ -104,9 +105,10 @@ export function combineLatest<R>(...observables: Array<ObservableInput<any> | ((
104105 * // [1, 0] after 1s
105106 * // [1, 1] after 1.5s
106107 * // [2, 1] after 2s
108+ * ```
107109 *
108- *
109- * @example <caption>Combine an array of Observables</caption>
110+ * ### Combine an array of Observables
111+ * ```javascript
110112 * const observables = [1, 5, 10].map(
111113 * n => Rx.Observable.of(n).delay(n * 1000).startWith(0) // emit 0 and then emit n after n seconds
112114 * );
@@ -117,9 +119,10 @@ export function combineLatest<R>(...observables: Array<ObservableInput<any> | ((
117119 * // [1, 0, 0] after 1s
118120 * // [1, 5, 0] after 5s
119121 * // [1, 5, 10] after 10s
122+ * ```
120123 *
121- *
122- * @example <caption>Use project function to dynamically calculate the Body-Mass Index</caption>
124+ * ### Use project function to dynamically calculate the Body-Mass Index
125+ * ```javascript
123126 * var weight = Rx.Observable.of(70, 72, 76, 79, 75);
124127 * var height = Rx.Observable.of(1.76, 1.77, 1.78);
125128 * var bmi = Rx.Observable.combineLatest(weight, height, (w, h) => w / (h * h));
@@ -129,7 +132,7 @@ export function combineLatest<R>(...observables: Array<ObservableInput<any> | ((
129132 * // BMI is 24.212293388429753
130133 * // BMI is 23.93948099205209
131134 * // BMI is 23.671253629592222
132- *
135+ * ```
133136 *
134137 * @see {@link combineAll }
135138 * @see {@link merge }
0 commit comments