lastFromSet
lastFromSet<
T
>(set
):T
|undefined
Defined in: utils/set.ts:26
Gets the last element of a Set.
Type Parameters
• T
Parameters
set
Set
<T
>
The Set from which to retrieve the last element.
Returns
T
| undefined
The last element of the Set, or undefined if the Set is empty.