Create a function that returns the last value of the last item in an array or string.
lastItem([0, 4, 19, 34, 50, -9, 2]) ➞ 2
lastItem("The quick brown fox jumped over the lazy dog") ➞ "g"
lastItem([]) ➞ undefined
undefined if array/string is empty.