aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-20 15:06:00 -0800
committerAdam Soltys <[email protected]>2023-12-20 15:06:00 -0800
commitf8c690e0b10c25c4a419984287165c468094c7f6 (patch)
tree42b99083b5c70ca14727a16010fd9caa7562e3bc /src/lib/utils.js
parentb8bc1fd01e75e96486d59e86216dadf9755f2e54 (diff)
downloadcoinos-ui-f8c690e0b10c25c4a419984287165c468094c7f6.tar.gz
coinos-ui-f8c690e0b10c25c4a419984287165c468094c7f6.zip
prettier
Diffstat (limited to 'src/lib/utils.js')
-rw-r--r--src/lib/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js
index 5303ec35..755d8daf 100644
--- a/src/lib/utils.js
+++ b/src/lib/utils.js
@@ -282,7 +282,7 @@ export function shuffleArray(array) {
}
}
- export let closest = (a, n) =>
+export let closest = (a, n) =>
a.reduce((prev, curr) =>
Math.abs(curr - n) < Math.abs(prev - n) ? curr : prev
);