Skip to content

@dice-roller/rpg-dice-roller / ast / keep

Function: keep() โ€‹

Call Signature โ€‹

keep(end, qty?): KeepNode

Defined in: src/ast/builders.ts:379

Keep qty highest (h) or lowest (l) items; quantity defaults to 1.

Parameters โ€‹

end โ€‹

PoolEnd

qty? โ€‹

number

Returns โ€‹

KeepNode

Call Signature โ€‹

keep(end, qty): ComputedKeepNode

Defined in: src/ast/builders.ts:380

Keep qty highest (h) or lowest (l) items; quantity defaults to 1.

Parameters โ€‹

end โ€‹

PoolEnd

qty โ€‹

ExpressionNode

Returns โ€‹

ComputedKeepNode

MIT Licensed ยท Credits