@tempots/dom

Signal.map property

Returns a new Computed instance that applies the given mapping function to the value of this Signal. The mapping function is called whenever the value of this Signal changes.

Signature:

readonly map: (fn: (value: T) => O, equals?: (a: O, b: O) => boolean) => Computed;