⚠ toArray()
Returns a read-only array of the range in order minimum and maximum
Range.prototype.toArray()
Range.prototype.toArray()public toArray(): readonly [Min, Max] {
return [this.#minimum.valueOf(), this.#maximum.valueOf()];
}Return type
Type
Returns
Example usage
// Example usage.
import { Range } from '@angular-package/range';
// Create new instance.
const range = new Range(4, 27);
// Returns [4, 27] of type readonly [4, 27]
range.toArray();Last updated