a library to speed up the development of Fivem scripts and frameworks
fivem-ts - Documentation v0.7.5 • Docs
fivem-ts - Documentation v0.7.5 / Shared / ITree
Represents a generic tree data structure where each node can have multiple children. This interface supports standard operations such as adding, removing, checking the existence of elements, and performing in-order traversal.
• T
The type of elements maintained by this tree.
add(
value
):void
• value: T
void
clear():
void
void
contains(
value
):boolean
• value: T
boolean
findMax():
T
T
findMin():
T
T
inOrderTraversal():
T
[]
T
[]
isEmpty():
boolean
boolean
remove(
value
):void
• value: T
void
size():
number
number