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 eb97fd3 commit 11ea514Copy full SHA for 11ea514
test/utils/Arrays.test.js
@@ -9,13 +9,13 @@ const { TYPES } = require('../../scripts/generate/templates/Arrays.opts');
9
// See https://en.cppreference.com/w/cpp/algorithm/lower_bound
10
const lowerBound = (array, value) => {
11
const i = array.findIndex(element => value <= element);
12
- return i == -1 ? array.length : i;
+ return i === -1 ? array.length : i;
13
};
14
15
// See https://en.cppreference.com/w/cpp/algorithm/upper_bound
16
const upperBound = (array, value) => {
17
const i = array.findIndex(element => value < element);
18
19
20
21
const bigintSign = x => (x > 0n ? 1 : x < 0n ? -1 : 0);
0 commit comments