(cb: (value: any, event: any) => void, swallow_event?: boolean): (e: any) => void import {handle_target_value} from '@fuzdev/fuz_util/dom.js'; Handles the value of an event's target and invokes a callback. Defaults to swallowing the event to prevent default actions and propagation.
cb
(value: any, event: any) => voidswallow_event
booleantruereturns
(e: any) => void mutates
event— calls `swallow()` which mutates the event if `swallow_event` is true