返回列表的头。
使用arr[0]可返回传递的数组的第一个元素。
arr[0]
const head = arr => arr[0]; // head([1,2,3]) -> 1
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8