@tempots/dom
makeSignal() function
Creates a signal with the specified initial value and equality function.
Signature:
makeSignal: (value: T, equals?: (a: T, b: T) => boolean) => Signal
Parameters
Parameter |
Type |
Description |
---|---|---|
value |
T |
The initial value of the signal. |
equals |
(a: T, b: T) => boolean |
(Optional) The equality function used to compare signal values. Defaults to a strict equality check ( |
Returns: Signal
A new Signal instance.