The fastest javascript implementation of a double-ended queue. Used by the official Redis, MongoDB, MariaDB & MySQL libraries for Node.js and many other libraries.
Lack of size() is especially confusing because it gives a feeling that there is no way to get queue length. length property is mentioned, but not as part of API, but inside examples, which makes it less visible.
At the time of submitting this report documentation seems to miss part of public API. Following methods and property are not mentioned:
get()
peek()
size()
length
propertyLack of
size()
is especially confusing because it gives a feeling that there is no way to get queue length.length
property is mentioned, but not as part of API, but inside examples, which makes it less visible.