We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is some code repetition, which can be improved by using function or ternary operator:
if (LocalStorage.getData() === null) { tasksList = []; } else { tasksList = LocalStorage.getData(); }
It would be better to keep the code organized by keeping addTask in the UI.js as other functions: const addTask = (newTask) => {
const addTask = (newTask) => {
It would be better to use forEach instead of simple for loop:
for (let i = 0; i < tasksList.length; i += 1) { tasksList[i].index = i + 1; } return tasksList;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There is some code repetition, which can be improved by using function or ternary operator:
It would be better to keep the code organized by keeping addTask in the UI.js as other functions:
const addTask = (newTask) => {
It would be better to use forEach instead of simple for loop:
The text was updated successfully, but these errors were encountered: