*104*

# RxJS Min() Mathematical Operator

The RxJS min() operator is a mathematical operator that takes an observable with all values and returns an observable with the minimum value. It takes in a compare function as an argument, which is optional.

### Syntax:

Following is the syntax of the min() operator:

**comparer_func:** It is used to filter the values to consider only the min value from the source observable. It is optional. If it is not provided, the count() operator will consider the default function.

**Return value**

The return value of the min() operator is observable that provide the minimum value.

Let us see some examples of min() operator to understand it clearly.

### Example 1

**Output:**

After executing the above example, you will see the following result:

### Example 2

Example of the min() operator using the array. See the following example:

**Output:**

After executing the above example, you will see the following result: