add function to get the first element in array
Closed this issue · 1 comments
latiifabdi commented
Given an array, this function will return the first element of the array
function fist(array) {
return array[0]
}
kentcdodds commented
Sounds great @latiifabdi! 👍