My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Why is FIFO Queue's shift faster than native javascript array shift?

Arihant's photo
Arihant
·Nov 23, 2017

Background: I've a non CS background, so no CS101 knowledge at all.

Why is tiny-queue's shift method (github.com/nolanlawson/tiny-queue/blob/mast..) faster than native array shift, as told in the readme of the module?