Skip to content

Function: withSet() ​

ts
function withSet(sets, set): DiceSet[];

Defined in: src/sets.ts:81

The sets with one added, newest first. A set of the same name is replaced, and the oldest go past MAX_SETS. Returns a new list.

Parameters ​

sets ​

readonly DiceSet[]

set ​

DiceSet

Returns ​

DiceSet[]

MIT © John Morris