static create()

Creates the Greater instance with the given primitive value.

Greater.create()

Creates the Greater instance with the given primitive value.

greater.class.ts
public static create<Value extends number>(value: Value): Greater<Value> {
  return new this(value);
}

Generic type variables

Valueextendsnumber

A generic type variable indicates captured type of the supplied value via the return type.

Parameters

value:Value

The value of generic type variable Value to set with a newly created instance.

Return type

Greater<Value>

The return type is the Greater primitive wrapper object that takes the generic type variable Value.

Returns

The return value is the Greater instance with the primitive value of the given value.

Example usage

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

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

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

Last updated