⚠ valueOf()
Returns a read-only object consisting of the primitive values of `Minimum` and `Maximum` instances
Range.prototype.valueOf()
The valueOf() method returns a read-only object consisting of the primitive values of Minimum and Maximum instances.
public valueOf(): Readonly<{ min: Min; max: Max }> {
return Object.freeze({
min: this.#minimum.valueOf(),
max: this.#maximum.valueOf(),
});
}Return type
Readonly<{ min:Min; max:Max; }>
The return type is the Readonly object consisting of property min of a generic type variable Min and a max of generic type variable Max.
Returns
The return value is a frozen object consisting of the primitive values of Minimum and Maximum instances.
Example usage
Last updated