Create a function that takes an array of words and transforms it into an array of each word's length.
wordLengths(["hello", "world"]) ➞ [5, 5]
wordLengths(["Halloween", "Thanksgiving", "Christmas"]) ➞ [9, 12, 9]
wordLengths(["She", "sells", "seashells", "down", "by", "the", "seashore"]) ➞ [3, 5, 9, 4, 2, 3, 8]