diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-08-13 18:35:58 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-08-13 18:35:58 +0200 |
| commit | 24661f00461f0ea56c290770c698f8671e66bb37 (patch) | |
| tree | 6b3385430c4ea7e48d409f98641da835a7227a14 /animism-align/frontend/app/utils/index.js | |
| parent | 268ae2f8a416527f5d71c0f53345da4c267c8216 (diff) | |
scrolling viewer sections
Diffstat (limited to 'animism-align/frontend/app/utils/index.js')
| -rw-r--r-- | animism-align/frontend/app/utils/index.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/animism-align/frontend/app/utils/index.js b/animism-align/frontend/app/utils/index.js index b7c05da..9a47df3 100644 --- a/animism-align/frontend/app/utils/index.js +++ b/animism-align/frontend/app/utils/index.js @@ -92,6 +92,7 @@ export const angle = (x1, y1, x2, y2) => Math.atan2(y2 - y1, x2 - x1) export const floatLT = (a,b) => ((a*10|0) < (b*10|0)) export const floatLTE = (a,b) => ((a*10|0) === (b*10|0) || floatLT(a,b)) export const floatInRange = (a,b,c) => floatLTE(a, b) && floatLT(b, c) +export const simpleArraysEqual = (a, b) => JSON.stringify(a) === JSON.stringify(b) /* URLs */ |
