@tempots/dom

emitChecked() function

Calls the provided function with the checked value of the event target.

Signature:

emitChecked: (fn: (checked: boolean) => void) => (event: Event) => void

Parameters

Parameter

Type

Description

fn

(checked: boolean) => void

The function to be called with the checked value.

Returns: (event: Event) => void

A function that takes an event and calls the provided function with the checked value of the event target.