min

The min() operator is pretty much the opposite of the max() operator; it comes in two flavors: with parameter and without parameter. Its task is to find the smallest value. To use it, type:

// mathematical/min.jslet streamOfValues$ = Rx.Observable  .of(1, 2, 3, 4)  .min();// emits 1streamOfValues$.subscribe(data => console.log(data));

Get Architecting Angular Applications with Redux, RxJS, and NgRx now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.