denque
Advanced tools
Changelog
2.1.0
clear()
is still keeping references to the elements (#47)toArray
(#45)Changelog
2.0.0
push
& unshift
now accept undefined
values to match behaviour of Array
(fixes #25) (#35)
push(undefined)
and unshift(undefined)
to do
nothing - the new behaviour now correctly adds undefined values to the queue.push()
& unshift()
(no arguments) remains unchanged (nothing gets added to the queue).undefined
values in the queue and the return value of pop()
then
check the queue .length
before popping.