Skip to content

Commit 11ea514

Browse files
Update Arrays.test.js
1 parent eb97fd3 commit 11ea514

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/utils/Arrays.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ const { TYPES } = require('../../scripts/generate/templates/Arrays.opts');
99
// See https://en.cppreference.com/w/cpp/algorithm/lower_bound
1010
const lowerBound = (array, value) => {
1111
const i = array.findIndex(element => value <= element);
12-
return i == -1 ? array.length : i;
12+
return i === -1 ? array.length : i;
1313
};
1414

1515
// See https://en.cppreference.com/w/cpp/algorithm/upper_bound
1616
const upperBound = (array, value) => {
1717
const i = array.findIndex(element => value < element);
18-
return i == -1 ? array.length : i;
18+
return i === -1 ? array.length : i;
1919
};
2020

2121
const bigintSign = x => (x > 0n ? 1 : x < 0n ? -1 : 0);

0 commit comments

Comments
 (0)