invertase / denque

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.
https://docs.page/invertase/denque
Apache License 2.0
354 stars 33 forks source link

Question: remove element by value #52

Open vanodevium opened 1 year ago

vanodevium commented 1 year ago

What is the best practice for the case when you need to remove an element by value, for example, some object with ID == 123.

I completely understand: this is stack/queue. But in my very difficult case I have to remove element somewhere inside queue...

Thanks!