You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 20, 2018. It is now read-only.
.forEach(price=>console.log(`Prices higher than $30: ${price}`);
52
+
.forEach(price=>console.log(`Prices higher than $30: ${price}`));
53
53
```
54
54
55
55
Now what if this data were to come as some sort of event, for example a stream, such as a WebSocket? Then we could pretty much write the same query to iterate our data, with very little change.
@@ -144,7 +144,7 @@ var distinct = debounced
144
144
Now, let's query Wikipedia! In RxJS, we can instantly bind to any [Promises A+](https://github.com/promises-aplus/promises-spec) implementation through the `Rx.Observable.fromPromise` method. Or, directly return it and RxJS will wrap it for you.
145
145
146
146
```js
147
-
functionsearchWikipedia (term) {
147
+
letsearchWikipedia=(term)=> {
148
148
return$.ajax({
149
149
url:'https://en.wikipedia.org/w/api.php',
150
150
dataType:'jsonp',
@@ -160,7 +160,7 @@ function searchWikipedia (term) {
160
160
Once that is created, we can tie together the distinct throttled input and query the service. In this case, we'll call `flatMapLatest` to get the value and ensure we're not introducing any out of order sequence calls.
0 commit comments