From 90798c2c8e8f23c20eee7560fa2530436da3304e Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 7 May 2021 21:09:10 -0600 Subject: [PATCH] copy/paste will end me one day --- src/utils/arrays.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/arrays.ts b/src/utils/arrays.ts index 1efa462c01..0c980c794d 100644 --- a/src/utils/arrays.ts +++ b/src/utils/arrays.ts @@ -60,7 +60,7 @@ export function arrayFastResample(input: number[], points: number): number[] { export function arraySmoothingResample(input: number[], points: number): number[] { if (input.length === points) return input; // short-circuit a complicated call - let samples: number[] = []; + const samples: number[] = []; if (input.length > points) { // We're downsampling. To preserve the curve we'll actually reduce our sample // selection and average some points between them. @@ -99,8 +99,8 @@ export function arraySmoothingResample(input: number[], points: number): number[ * @returns {number[]} The rescaled array. */ export function arrayRescale(input: number[], newMin: number, newMax: number): number[] { - let min: number = Math.min(...input); - let max: number = Math.max(...input); + const min: number = Math.min(...input); + const max: number = Math.max(...input); return input.map(v => percentageWithin(percentageOf(v, min, max), newMin, newMax)); }