Skip to content

Function: parseRangeString()

parseRangeString(total, rangeStr?): number[]

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

Parameters

total: number

rangeStr?: string

Returns

number[]

Defined in

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