Returns the last thing in a list. If the value is a string, then it will return the last character.
If an empty list is passed then this will return undefined.
last("hello"); // "o"last([1, 2, 3]); // 3 Copy
last("hello"); // "o"last([1, 2, 3]); // 3
Returns the last thing in a list. If the value is a string, then it will return the last character.