eggheadio-github/stack-overflow-copy-paste

add function to get the first element in array

Closed this issue · 1 comments

Given an array, this function will return the first element of the array

function fist(array) {
  return array[0]
} 

Sounds great @latiifabdi! 👍