We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 729bc4d commit 8959566Copy full SHA for 8959566
src/algorithms/search/binary-search/binarySearch.js
@@ -11,7 +11,7 @@ import Comparator from '../../../utils/comparator/Comparator'
11
12
exportdefaultfunctionbinarySearch(sortedArray,seekElement,comparatorCallback){
13
// Let's create comparator from the comparatorCallback function.
14
-// Comparator object will give us common comparison methods like equal() and lessThen().
+// Comparator object will give us common comparison methods like equal() and lessThan().
15
constcomparator=newComparator(comparatorCallback);
16
17
// These two indices will contain current array (sub-array) boundaries.
0 commit comments