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
353 stars 33 forks source link

Create a double-ended queue with custom initial capacity? #15

Closed Meigyoku-Thmn closed 6 years ago

Meigyoku-Thmn commented 6 years ago

Hello, can you add one more Constructor to denque that creates a double-ended queue with custom initial capacity? Currently there are only one default constructor and one that receives an array.

Salakar commented 6 years ago

I will look into adding this for you. Thanks for the request 👍