shuffleArray() : Formulate a bit more cleanly using ES6 semantics to swap values in array. Inspired by several common js implementations of Fisher–Yates shuffle.
updateImage:
Use ES6 arrow functions, serves to shorten the code a bit.
Split out EXIF orientation handling into a separate function.
No behavioral changes.
Changes:
shuffleArray() : Formulate a bit more cleanly using ES6 semantics to swap values in array. Inspired by several common js implementations of Fisher–Yates shuffle.
updateImage:
Tested manually.