Skip to content

Function: valueOfFace() ​

ts
function valueOfFace(group, face): number;

Defined in: src/dice.ts:285

What a face of a group's die is worth in a total: its number, or for a custom face its value, which is 0 when it is only words.

Parameters ​

group ​

DiceGroup

face ​

number

Returns ​

number

MIT © John Morris