From a31e372af71ab177a0b44c6fe7f9a828753e790c Mon Sep 17 00:00:00 2001 From: Ryan James Spencer Date: Mon, 9 Oct 2017 10:02:10 +1100 Subject: [PATCH] Correct switchMap to switchMapTo in code description --- src/data/transformation-examples.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/data/transformation-examples.js b/src/data/transformation-examples.js index b460850..ccce05c 100644 --- a/src/data/transformation-examples.js +++ b/src/data/transformation-examples.js @@ -25,7 +25,7 @@ export const transformationExamples = { return inputs[0].pluck('content') .bufferCount(3, 2) .map(x => `[${x}]`); - } + } }, bufferTime: { @@ -37,7 +37,7 @@ export const transformationExamples = { return inputs[0].pluck('content') .bufferTime(30, scheduler) .map(x => `[${x}]`); - } + } }, bufferToggle: { @@ -191,7 +191,7 @@ export const transformationExamples = { }, switchMapTo: { - label: 'obs1$.switchMap(obs2$, (x, y) => "" + x + y)', + label: 'obs1$.switchMapTo(obs2$, (x, y) => "" + x + y)', inputs: [ [{t:0, c:'A'}, {t:42, c:'B'}, {t:55, c:'C'}], [{t:0, c:1}, {t:10, c:2}, {t:20, c:3}, 25]