From: Jérôme Benoit Date: Mon, 24 Oct 2022 12:32:34 +0000 (+0200) Subject: More linter silencing X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=47006ddf6055b02dd084ae91269f12b44ce8225d;p=benchmarks-js.git More linter silencing Signed-off-by: Jérôme Benoit --- diff --git a/max.js b/max.js index bfa521c..74f6f43 100644 --- a/max.js +++ b/max.js @@ -6,6 +6,7 @@ const testArray = generateRandomNumberArray(10000) /** * * @param values + * @returns */ function loopMax (values) { let max = -Infinity @@ -18,6 +19,7 @@ function loopMax (values) { /** * * @param values + * @returns */ function reduceTernaryMax (values) { return values.reduce((a, b) => (a > b ? a : b), -Infinity) @@ -26,6 +28,7 @@ function reduceTernaryMax (values) { /** * * @param values + * @returns */ function reduceMathMax (values) { return values.reduce((a, b) => Math.max(a, b), -Infinity) @@ -34,6 +37,7 @@ function reduceMathMax (values) { /** * * @param values + * @returns */ function sortMax (values) { return values.sort((a, b) => b - a)[0]