mourner / tinyqueue

The smallest and simplest priority queue in JavaScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

init with empty array add undefined to data.

seokgyo opened this issue · comments

Hi,

Initializing tinyqueue w/ empty array add undefined to data.

q = new require('tinyqueue')([])

{ data: [ undefined ],
length: 0,
compare: [Function: defaultCompare] }

Sorry for those 1.2.0 regressions, released the fix with 1.2.2. The module certainly needed better test coverage.

Thanks for the quick fix. 👍