You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✅ Very good use of destructuring & arrow functions in ES6 to adhere with KISS principle.
✅ Good limiting functions to have a single responsibility.
❓ No invalid output handling from searchIndex function leading to repeated conditions in several functions.
🔍 searchIndex = (index) => this.items.findIndex((item) => Task.compareTask(item, index)).
💡 Use short-circuit evaluation to always return a false value incase of invalid output.
The text was updated successfully, but these errors were encountered:
✅ Very good use of
destructuring
&arrow functions
inES6
to adhere withKISS
principle.✅ Good limiting functions to have a single responsibility.
❓ No invalid output handling from
searchIndex
function leading to repeated conditions in several functions.🔍
searchIndex = (index) => this.items.findIndex((item) => Task.compareTask(item, index))
.💡 Use short-circuit evaluation to always return a false value incase of invalid output.
The text was updated successfully, but these errors were encountered: