# valueOf()

## `Minimum.prototype.valueOf()`

The `valueOf()` method returns the [primitive value](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/valueOf) of the generic type variable [`Value`](https://docs.angular-package.dev/range-1/generic-type-variables#minimum-less-than-value-greater-than) of the specified [`Minimum`](https://docs.angular-package.dev/range-1/minimum) object.

{% embed url="<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/valueOf>" %}

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

```typescript
public valueOf(): Value {
  return super.valueOf() as Value;
}
```

{% endcode %}

### Return type

#### [<mark style="color:green;">`Value`</mark>](https://docs.angular-package.dev/range-1/generic-type-variables#minimum-less-than-value-greater-than)

### Returns

The **return value** is the [primitive value](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/valueOf) of generic type variable [`Value`](https://docs.angular-package.dev/range-1/generic-type-variables#minimum-less-than-value-greater-than).

## Example usage

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

// Define constant `id`.
const id = 390;

// Returns 390 of type 390.
new Minimum(id).valueOf();
```


---

# 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://docs.angular-package.dev/range-1/minimum/methods/valueof.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.
