import { getRange } from '@src/hylo-components/utils/usefull/usefull';
Converts a range string into a an array of the values of the range.
A range string consists of the starting value of the range followed by ".." and the end value.
The start and end value can be either any number or a character each.
If they are a character each, the character codes are used to build the range.
If they are numbers, the decimal places define the steps of the range build.
E.g.: 1..10 or A..Z or 0.0..2 (which would use 0.1 steps)
If "values" does not define a range, an array with "values" as its only value is returned.
Parameters
values: string
the range as string (if not a string, returns null)
skip: number = 0
entries to skip when building the range (default: 0)
import { getRange } from '@src/hylo-components/utils/usefull/usefull';
Converts a range string into a an array of the values of the range. A range string consists of the starting value of the range followed by ".." and the end value. The start and end value can be either any number or a character each. If they are a character each, the character codes are used to build the range. If they are numbers, the decimal places define the steps of the range build.
E.g.: 1..10 or A..Z or 0.0..2 (which would use 0.1 steps)
If "values" does not define a range, an array with "values" as its only value is returned.