Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduced obj.splice calls- instead of calling splice directly within the loop, which can cause array reindexing and performance issues, i've updated this to collect the elements to be deleted in a separate array - losToDelete - and remove them in a subsequent loop. Moving the studentsOnlineList.set([...this.los]) call outside the loop ensures that we only update studentsOnlineList once after all the necessary changes have been made.
- Loading branch information