Returns the first element of the given array
Optional
the array to inspect
the default value if the array is empty
the first element of the given array
David Hsing
getFirst(['foo', 'bar']); // 'foo' Copy
getFirst(['foo', 'bar']); // 'foo'
Returns the first element of the given array