Skip to content

Commit 867d562

Browse files
♻️ refactor: Use arrow function where possible.
1 parent c4ab2cf commit 867d562

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/minima/clarkson.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
*
2929
* @return {number} non-inclusive right bound of the minima set
3030
*/
31-
32-
export default function clarkson(prec, a, i, j) {
31+
const clarkson = (prec, a, i, j) => {
3332
//
3433
// This algorithm reorganizes the input array `a` as follows
3534
// - elements that are minima are put at the front of `a`
@@ -117,4 +116,6 @@ export default function clarkson(prec, a, i, j) {
117116
// The algorithm returns the outer right bound of the minima set a[i:min].
118117

119118
return min;
120-
}
119+
};
120+
121+
export default clarkson;

0 commit comments

Comments
 (0)