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 structure
belongs 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 usingjs
to write it. -
Most developers will only choose the library by
github star
and 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.