> For the complete documentation index, see [llms.txt](https://range.angular-package.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://range.angular-package.dev/greater/methods/static-create.md).

# static create()

## `Greater.create()`

Creates the [`Greater`](/greater/overview.md) instance with the given primitive [`value`](#value-value).

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

```typescript
public static create<Value extends number>(value: Value): Greater<Value> {
  return new this(value);
}
```

{% 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 [`value`](#value-value) via the [return type](#return-type).

### Parameters

#### `value:`[<mark style="color:green;">`Value`</mark>](#value-extends-number)

The value of generic type variable [`Value`](#valueextendsnumber) to set with a newly created instance.

### Return type

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

The **return type** is the [`Greater`](/greater/overview.md) [primitive wrapper object](https://developer.mozilla.org/en-US/docs/Glossary/Primitive#primitive_wrapper_objects_in_javascript) that takes the generic type variable [`Value`](#valueextendsnumber).

### Returns

The **return value** is the [`Greater`](/greater/overview.md) instance with the [primitive value](/greater/methods/valueof.md) of the given [`value`](#value-value).

## Example usage

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

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

// Returns Greater {390} of Greater<390>.
Greater.create(id);
```
