# static create()

## `Greater.create()`

Creates the [`Greater`](https://range.angular-package.dev/draft/greater) 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`](https://range.angular-package.dev/draft/greater) [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`](https://range.angular-package.dev/draft/greater) instance with the [primitive value](https://range.angular-package.dev/draft/greater/methods/valueof) 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);
```
