diff --git a/src/algorithms/search/binary-search/binarySearch.js b/src/algorithms/search/binary-search/binarySearch.js index b9e18aab..a7a96727 100644 --- a/src/algorithms/search/binary-search/binarySearch.js +++ b/src/algorithms/search/binary-search/binarySearch.js @@ -9,7 +9,7 @@ import Comparator from '../../../utils/comparator/Comparator'; * @return {number} */ -export default function binarySearch(sortedArray, seekElement, comparatorCallback) { +export default const binarySearch = (sortedArray, seekElement, comparatorCallback) => { // Let's create comparator from the comparatorCallback function. // Comparator object will give us common comparison methods like equal() and lessThen(). const comparator = new Comparator(comparatorCallback);