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

Add option to constructor to specify an initial size #16

Closed paulmccarthy closed 6 years ago

paulmccarthy commented 6 years ago

Updated the constructor to accept an integer parameter that will create an empty array. Added test for new constructor option.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 088715861b228dca0a8cb97e6e4ef57a7f71e0ac on paulmccarthy:add-custom-initial-size into 80a545fcdd9aff7f9e00b8f81b42c58907a45dd6 on Salakar:master.

paulmccarthy commented 6 years ago

Doesn't work as expected. Closing.