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
{{ message }}
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.
This line
bookInfo = bookInfo.sort((a, b) =>
is dangerous.calling .sort on an array mutates the original array. This means that reassigning bookInfo to a sorted version of itself is a redundant.
More importantly this could cause very weird and hard to track down bugs if you later expand this piece of code.
The text was updated successfully, but these errors were encountered: