valueOf()

Returns the primitive value of a specified Maximum object

Maximum.prototype.valueOf()

Returns the primitive value of a specified Maximum object.

maximum.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 { Maximum } from '@angular-package/range';

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

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

Last updated