diff options
| author | Adam Soltys <[email protected]> | 2023-12-20 15:06:00 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-20 15:06:00 -0800 |
| commit | f8c690e0b10c25c4a419984287165c468094c7f6 (patch) | |
| tree | 42b99083b5c70ca14727a16010fd9caa7562e3bc /src/lib/utils.js | |
| parent | b8bc1fd01e75e96486d59e86216dadf9755f2e54 (diff) | |
| download | coinos-ui-f8c690e0b10c25c4a419984287165c468094c7f6.tar.gz coinos-ui-f8c690e0b10c25c4a419984287165c468094c7f6.zip | |
prettier
Diffstat (limited to 'src/lib/utils.js')
| -rw-r--r-- | src/lib/utils.js | 2 |
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 ); |
