Create a function that takes an array of values and returns the first and last values in a new array.
firstLast([5, 10, 15, 20, 25]) ➞ [5, 25]
firstLast(["innokodakademija", 13, null, false, true]) ➞ ["innokodakademija", true]
firstLast([undefined, 4, "6", "hello", null]) ➞ [undefined, null]