set01

Get the first element

1 / 26
read the snippet · pick its Big-O
function head(arr) {
return arr[0];
}