Can you tell me please, why the final array does not have the last item of the initial array; it returns [3, 6, 9, 2, 4, 6], and we are missing '8'.
let item = [123,456,789,12,34,56,78];
const tailAndHead = arr => arr.slice(1).reduce((a,v,i) => (a.push(arr[i]%10), a), []);