You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
276 B
15 lines
276 B
5 months ago
|
/**
|
||
|
* 获取对象第一个值
|
||
|
* @param list 数组
|
||
|
*/
|
||
|
export declare function first<T>(list: T[] | ArrayLike<T>): T;
|
||
|
export declare function first(obj: any): any;
|
||
|
|
||
|
declare module './ctor' {
|
||
|
interface XEUtilsMethods {
|
||
|
first: typeof first;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default first
|