For now, JavaScript does not support any data structure. If developers want to use data structure, they can only rely on community (eg. github). This is very bad.
The reasons are as follows:
-
The
data structurebelongs to the basic function and has a wide range of application scenarios. It needs the support of the engine (eg.V8) to make it play faster, rather than usingjsto write it. -
Most developers will only choose the library by
github starand have no time to see whether its implementation is correct and efficient.
I think we should gradually improve the proposal in this regard. His importance doesn't even need my explanation.
Let's start with the priority queue !!! Of course, the more data structure supported, the better.