Appearance
获取数组的第一个元素。
import { head } from '@base-web-kits/base-tools-ts'; head([1, 2, 3]); // 结果: 1 head([]); // 结果: undefined
array (Array)
(any)