The priority
parameter is a number that represents the priority of the value. It is
optional and has a default value of NaN
.
Optional
val: null | T = nullThe val
parameter is of type T | null
, which means it can accept a value of type
T
or null
.
Private
_priorityPrivate
_valGenerated using TypeDoc
The constructor function initializes an instance of a class with a priority and a value.