@tempots/dom

makeProp() function

Creates a new Prop object with the specified value and equality function.

Signature:

makeProp: (value: T, equals?: (a: T, b: T) => boolean) => Prop

Parameters

Parameter

Type

Description

value

T

The initial value of the Prop.

equals

(a: T, b: T) => boolean

(Optional) The equality function used to compare values. Defaults to strict equality (===).

Returns: Prop

A new Prop object.