★ Constructor

The `Greater` primitive wrapper object constructor

Greater()

Creates the Greater instance with the given value.

greater.class.ts
constructor(value: Value) {
  super(value);
}

Parameters

value:Value

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

Example usage

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

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

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

Last updated