In JavaScript code when accessing data from localstorage without parse it and check if localstorage is null then assign an empty array in the variable else parsing the localstorage data. I changed that 6 lines of code into one line of code
(Describe your project over here.)
Checklist
[x] I've been assigned an issue related to this PR.
[ ] I've used beautifiers.
[ ] I've added my Project's name and description to Index.md
[ ] I've made a README.md file for my Project.
[ ] The README.md file of my project contains Project title, Description, Use of project, Set up, Stack used and Output (Screenshots).
Description
In JavaScript code when accessing data from localstorage without parse it and check if localstorage is null then assign an empty array in the variable else parsing the localstorage data. I changed that 6 lines of code into one line of code
(Describe your project over here.)
Checklist
Index.md
Related Issues or Pull Requests number
(Write your answer here.)