UNPKG

@prelude/function

Version:

Function module.

9 lines (6 loc) 150 B
import noop from './noop.js' const fire = (f: () => Promise<unknown>, rejected = noop): void => { f().catch(rejected) } export default fire