get step()

The `get` accessor obtains the step of a specified `Range` object

Range.prototype.step

The get accessor obtains the step of a specified Range object. It's used to return the entire range, get the step of the range value, and change the range value.

range.class.ts
public get step(): Step {
  return this.#step;
}

Type

Example usage

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

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

// Returns 1.5 of type 1.5
range.step;

Last updated