static isMinimum()
Checks whether the value of any type is the Maximum instance of any or the given primitive value
Minimum.isMinimum()
public static isMinimum<Value extends number>(
value: any,
min?: Value
): value is Minimum<Value> {
return (
typeof value === 'object' &&
value instanceof this &&
(typeof min === 'number' ? value.valueOf() : true)
);
}Generic type variables
Valueextendsnumber
Parameters
value:any
min?:Value
Return type
value is Minimum<Value>
Returns
Example usage
Last updated