@tempots/dom
emitValueAsNumber() function
Calls the provided function with the value of an HTMLInputElement as a number.
Signature:
emitValueAsNumber: (fn: (num: number) => void) => (event: Event) => void
Parameters
Parameter |
Type |
Description |
---|---|---|
fn |
(num: number) => void |
The function to be called with the value as a number. |
Returns: (event: Event) => void
A function that can be used as an event handler.