Author: Lacy Hogan Version: 1.0.0
This application creates a constructor, LinkedList, which allows you to create a instances of a linked list of nodes. It contains 5 methods. You can insert a node at the head of the list, insert a node at the end of the list, find a node in the list, remove the last node (pop), and create a copy of the list and modify it (map). There are three tests for each method to test different lengths and different modifications.
Ensure the following devDependencies are initialized in your package.json: "devDependencies": "babel-eslint": "^8.2.3", "babel-preset-env": "^1.6.1", "babel-register": "^6.26.0", "eslint": "^4.19.1", "eslint-config-airbnb-base": "^12.1.0", "eslint-plugin-import": "^2.11.0", "eslint-plugin-jest": "^21.15.1", "jest": "^22.4.3" Ensure the following devDependencies are initialized in your package.json: "dependencies": "dotenv": "^5.0.1" Ensure "test": "jest --coverage" is set in your package.json in order to run the tests in your terminal.
Utilizes JavScript and Node
Sean Miller on the Map method.