valueOf()

Returns the primitive value of a specified Minimum object

Minimum.prototype.valueOf()

The valueOf() method returns the primitive value of the generic type variable Value of the specified Minimum object.

minimum.class.ts
public valueOf(): Value {
  return super.valueOf() as Value;
}

Return type

Returns

The return value is the primitive value of generic type variable Value.

Example usage

// Example usage.
import { Minimum } from '@angular-package/range';

// Define constant `id`.
const id = 390;

// Returns 390 of type 390.
new Minimum(id).valueOf();

Last updated