static create()
Creates the Minimum instance with the given primitive value
Last updated
Creates the Minimum instance with the given primitive value
Minimum.create()The static create() method creates the Minimum instance with the given primitive value.
public static create<Value extends number>(value: Value): Minimum<Value> {
return new this(value);
}A generic type variable indicates captured type of the supplied value via the return type.
The minimum number of generic type variable Value to set with a new instance.
The return type is the Minimum primitive wrapper object that takes the generic type variable Value.
The return value is the Minimum instance with the primitive value of the given value.
Last updated
// Example usage.
import { Minimum } from '@angular-package/range';
// Returns Minimum {27} of Minimum<27>.
Minimum.create(27);