valueOf()

Returns the primitive value of a specified object

Less.prototype.valueOf()

Returns the primitive value of a specified object.

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

Return type

Returns

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

Example usage

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

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

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

Last updated