Select code listing
Welcome
2.1 - Processing collections with map, reduce, and filter
2.2 - Custom BufferIterator function
2.3 - Fibonacci function using generators
2.4 - Custom progress indicator module using RxJS
3.1 - Disposing of an observable
3.2 - Disposing of a promise
3.3 - Mapping functions over streams
3.4 - Filtering events from a stream
3.5 - Using reduce to compute spending
3.6 - Customer exclude operator
3.7 - Using aggregate operators
4.1 - Working with Observables and setTimeout()
4.2 - Creating a simple animation with an RxJS timer
4.3 - Explicit time using JavaScript timing functions and RxJS
4.4 - Simulating a simple the stock ticker widget
4.5 - Augmenting stock data with the time interval
4.6 - Showcase the delay operator
4.7 - Delay shifts the entire observable sequence
4.8 - Sequential delay operators
4.9 - Manual debouncing logic for smart search widget
4.10 & 4.11 - Dedicated debounce method using vanilla JavaScript
4.12 - A simple debounce-optimized search program
4.13 - Controlling button action with throttle
4.14 - Creating form field history with bufferWhen()
4.15 - Buffering events in for a specific period of time
5.1 - Case matching event data resulting from merging mouse and touch streams
5.2 - Normalizing event data upstream become merging the streams
5.3 - Reactive search solution
5.4 & 5.5 - The request quote stream
5.6 - Updating multiple stock symbols
5.7 & 5.8 - Drag-and-drop stream logic
6.1 - Hooking into the start of a stream
6.2 & 6.3 - SessionDisposable object implementing the dispose functionality
6.4 - Synchronizing streams with combineLatest()
6.5 & 6.6 & 6.7 - Combining multiple URL shortener streams
6.8 - Using forkJoin to fetch simultaneous stock symbols
6.9 & 6.10 - Transaction class
6.11 - Optimizing write operations using bulk writes
6.12 - Two queries in a single stream declaration
6.13 & 6.14 - Withdraw function
7.1 - Function ajax() with success and error callbacks
7.2 - Imperative error handling with asynchronous code
7.3 - Promisifed ajax()
7.4 - Internals of the Try functional data type
7.5 - Calling the error method on observers when an exception is throw
7.6 - Recovering from an exception using catch()
7.7 - Implementing a linear backoff retry for our stock ticker stream
7.8 - Fixed count, linear back off and throwing exception if error persists
7.9 - Stock ticker with error handling
8.1 - Interval factory
8.3 - Websocket client with RxJS
8.4 - Stock ticker as event emitter
8.5 - Complete stock ticker widget with change tracking
9.1 - First unit test of a pure function notEmpty
9.2 - Using Mocha/chai to test an asynchronous function
9.3 - Asynchronous testing with promises
9.5 - Testing a stream that adds up all numbers of an array
9.6 - Testing an observable with a delay
9.7 - Testing a promise AJAX call within an observable
9.8 - Publishing values on an async scheduler
9.9 - Testing the map operator
9.10 - Testing the debounceTime operato
9.11 - Speeding up runInterval() with the virtual time scheduler
9.12 - Unit test main search logic
10.10
JavaScript
HTML
CSS
JavaScript
/* Welcome! Select code samples using the top navigation drop-down */
HTML
CSS
Output
Console