remove.d.ts 581 B

123456789101112131415161718192021
  1. /**
  2. * 移除对象属性
  3. * @param list 对象
  4. * @param iterate 迭代器/值
  5. */
  6. export declare function remove<T, C>(list: T[], iterate: number | string | ((this: C, item: T, index: number, list: T[]) => boolean), context?: C): T[];
  7. /**
  8. * 移除对象属性
  9. * @param obj 对象
  10. * @param iterate 迭代器/值
  11. */
  12. export declare function remove<C>(obj: any, iterate: number | string | ((this: C, item: any, key: string, obj: any) => boolean), context?: C): any;
  13. declare module './ctor' {
  14. interface XEUtilsMethods {
  15. remove: typeof remove;
  16. }
  17. }
  18. export default remove