UNPKG

290 BTypeScriptView Raw
1/**
2 * 获取对象第一个值
3 * @param list 数组
4 */
5export declare function first<T>(list: T[] | ArrayLike<T>): T;
6export declare function first(obj: any): any;
7
8declare module './ctor' {
9 interface XEUtilsMethods {
10 first: typeof first;
11 }
12}
13
14export default first