UNPKG

@sebastianwessel/quickjs

Version:

A typescript package to execute JavaScript and TypeScript code in a WebAssembly QuickJS sandbox

7 lines (6 loc) 214 B
export const getMaxIntervalAmount = (runtimeOptions) => { if (!runtimeOptions.maxIntervalCount || runtimeOptions.maxIntervalCount <= 0) { return 10; } return runtimeOptions.maxIntervalCount; };