get range()

The `get` accessor obtains the range of an `Array` of the minimum to the maximum with the step of a specified `Range` object

Range.prototype.range

The get accessor obtains the range of an Array of the minimum to the maximum with the step of a specified Range object.

range.class.ts
public get range(): Readonly<Array<number>> {
  return this.getRange();
}

Type

Returns

The return value is the range from minimum to the maximum of a read-only Array of number.

Example usage

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

// Create new instance.
// Returns Range {min: 3, max: 27, value: 10} of Range<3, 27, 3>.
const range = new Range(3, 27, 10, 3);

// Returns
// (9) [3, 6, 9, 12, 15, 18, 21, 24, 27] of type readonly number[]
range.range;

Last updated