UNPKG

@randsum/roller

Version:

A flexible, type-safe dice roller for tabletop RPGs, game development, and probability simulations

7 lines (5 loc) 235 B
import type { ComparisonOptions } from '../../../types' import { applyCap } from './applyCap' export function applyCapping(rolls: number[], options: ComparisonOptions): number[] { return rolls.map(roll => applyCap(roll, options)) }