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