JavaScript Data Structures - Queue implementation with third-party library

44.0% Acceptance

In this lab, you will use Lodash, a popular JavaScript utility library, to implement a Queue data structure. The Queue will have enqueue, dequeue, and getSize methods. Lodash provides efficient and easy-to-use methods to manipulate arrays, which will be useful for this lab. Your task is to:

  1. Install Lodash
  2. Import Lodash in the 'queue.js' file
  3. Create a 'Queue' class
  4. Implement 'enqueue' and 'dequeue' methods using Lodash's '.insert()' and '.pullAt()' methods respectively.
  5. Export the 'Queue' class as a default export.