Skip to content

Commit

Permalink
refactor(Range): general update and update jsdoc.
Browse files Browse the repository at this point in the history
Add:
- `get` accessor `steps` to retrieve the number of steps.
- private `#value` property that indicates the range current value of the number type.
- `get` accessor `value` to retrieve the range value.
- `set` accessor `value` to set the `#range` property including range of specified object.
- `value` parameter of number type to the static `create()` method and `constructor()`.
- `getCurrentRange()` `getCurrentStep()` `getValueOfStep()` `setValue()` `setValueToStep()` `valueDown()` `valueUp()` methods.

Change:
- `get` accessor `range`  to use `getRange()` method of instance and its return type to readonly.
- `forEachStep()` method parameter names and set `range` parameter type to readonly.
- deprecate `getMin()` `getMax()` `valueOf()` `toArray()` methods.
- the `isBetween()` `isBetweenEvery()` `isBetweenSome()` methods to include minimum and maximum.
- the `getRange()` method to obtains the range to the specified value.
  • Loading branch information
sciborrudnicki committed Feb 26, 2022
1 parent 32c36d4 commit 622847e
Showing 1 changed file with 188 additions and 37 deletions.

0 comments on commit 622847e

Please sign in to comment.