Skip to content

Function: parseRangeString()

parseRangeString(total, rangeStr?): number[]

Defined in: packages/valaxy/client/utils/code.ts:6

1,3-5,8 => [1, 3, 4, 5, 8]

Parameters

total

number

rangeStr?

string

Returns

number[]