# static isMinimum()

## `Minimum.isMinimum()`

The static `isMinimum()` method checks the provided [`value`](#value-any) of [`any`](https://www.typescriptlang.org/docs/handbook/basic-types.html#any) type whether is an instance of [`Minimum`](/draft/minimum/overview.md) of any or the given [`min`](#min-value).

{% code title="minimum.class.ts" %}

```typescript
public static isMinimum<Value extends number>(
  value: any,
  min?: Value
): value is Minimum<Value> {
  return (
    typeof value === 'object' &&
    value instanceof this &&
    (typeof min === 'number' ? value.valueOf() : true)
  );
}
```

{% endcode %}

### Generic type variables

#### <mark style="color:green;">`Value`</mark>`extends`[<mark style="color:green;">`number`</mark>](https://www.typescriptlang.org/docs/handbook/basic-types.html#number)

A generic type variable indicates captured type of the supplied [`min`](#max-value) via the [return type](#return-type).

### Parameters

#### `value:`[<mark style="color:green;">`any`</mark>](https://www.typescriptlang.org/docs/handbook/basic-types.html#any)

The value of [`any`](https://www.typescriptlang.org/docs/handbook/basic-types.html#any) type to test against the [`Minimum`](/draft/minimum/overview.md) instance.

#### `min?:`[<mark style="color:green;">`Value`</mark>](#valueextendsnumber)

Optional minimum of the generic type variable [`Value`](#valueextendsnumber) to check if it's the [primitive value](https://range.angular-package.dev/draft/minimum/methods/pages/EVBRc6yvosmzogLoQiK2#minimum.prototype.valueof) of the given [`value`](#value-any).

### Return type

#### `value is Minimum<`[<mark style="color:green;">`Value`</mark>](#valueextendsnumber)`>`

The **return type** is a [`boolean`](https://www.typescriptlang.org/docs/handbook/basic-types.html#boolean) resulting from its statement indicating the [`value`](#value-any) is the [`Minimum`](/draft/minimum/overview.md) object that takes the generic type variable [`Value`](#valueextendsnumber).

### Returns

The **return value** is a [`boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) indicating whether the provided [`value`](#value-any) is an instance of [`Minimum`](/draft/minimum/overview.md) of any or the given [`min`](#min-value).

## Example usage

```typescript
// Example usage.
import { Minimum } from '@angular-package/range';


```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://range.angular-package.dev/draft/minimum/methods/static-isminimum.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
