Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitGraph: refactored hasOverlappingCommits function
Changed argument names from commit1 and commit2 to commitA and commitB respectively to prevent confusion with seq number values. Replaced Array filter method with array some method so that as soon as one overlap is found, function is finished. Used Object.entries instead of Object.keys to reduce number of variables needed and make function easier to read.
- Loading branch information