init with empty array add undefined to data.
seokgyo opened this issue · comments
seokgyo commented
Hi,
Initializing tinyqueue w/ empty array add undefined to data.
q = new require('tinyqueue')([])
{ data: [ undefined ],
length: 0,
compare: [Function: defaultCompare] }
Volodymyr Agafonkin commented
Sorry for those 1.2.0 regressions, released the fix with 1.2.2. The module certainly needed better test coverage.
seokgyo commented
Thanks for the quick fix. 👍