static create()

Creates the Less instance with the given primitive value

Less.create()

Creates the Less instance with the given primitive value.

less.class.ts
public static create<Value extends number>(value: Value): Less<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

Less<Value>

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

Returns

The return value is the Less 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 Less {390} of Less<390>.
Less.create(id);

Last updated