1
This commit is contained in:
21
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/remove.d.ts
vendored
Normal file
21
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/remove.d.ts
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* 移除对象属性
|
||||
* @param list 对象
|
||||
* @param iterate 迭代器/值
|
||||
*/
|
||||
export declare function remove<T, C>(list: T[], iterate: number | string | ((this: C, item: T, index: number, list: T[]) => boolean), context?: C): T[];
|
||||
|
||||
/**
|
||||
* 移除对象属性
|
||||
* @param obj 对象
|
||||
* @param iterate 迭代器/值
|
||||
*/
|
||||
export declare function remove<C>(obj: any, iterate: number | string | ((this: C, item: any, key: string, obj: any) => boolean), context?: C): any;
|
||||
|
||||
declare module './ctor' {
|
||||
interface XEUtilsMethods {
|
||||
remove: typeof remove;
|
||||
}
|
||||
}
|
||||
|
||||
export default remove
|
||||
Reference in New Issue
Block a user