Creates the Less instance with the given primitive value
Less.create()
Creates the Less instance with the given primitive value.
Less
value
public static create<Value extends number>(value: Value): Less<Value> { return new this(value); }
Value
extends
number
A generic type variable indicates captured type of the supplied value via the return type.
value:
The value of generic type variable Value to set with a newly created instance.
Less<
>
The return type is the Less primitive wrapper object that takes the generic type variable Value.
The return value is the Less instance with the primitive value of the given value.
Last updated 3 years ago
// Example usage. import { Greater } from '@angular-package/range'; // Define constant `id`. const id = 390; // Returns Less {390} of Less<390>. Less.create(id);