Working with Arrays
Finding the smallest (or largest) element in an array
const smallest = Math.min(...arr)
// ...or
const smallest = Math.min.apply(null, arr)
Removing an element from the middle of an array
array.splice(/*Element position*/ , 1)
// This returns the element removed