some.d.ts 681 B

1234567891011121314151617181920212223
  1. import { XEUtilsMethods } from '../xe-utils'
  2. /**
  3. * 对象中的值中的每一项运行给定函数,如果函数对任一项返回 true,则返回 true,否则返回 false
  4. * @param array 数组
  5. * @param iteratee 回调
  6. * @param context 上下文
  7. */
  8. export declare function some(array: any[], iteratee: Function, context?: any): any[];
  9. declare module '../xe-utils' {
  10. interface XEUtilsMethods {
  11. /**
  12. * 对象中的值中的每一项运行给定函数,如果函数对任一项返回 true,则返回 true,否则返回 false
  13. * @param array 数组
  14. * @param iteratee 回调
  15. * @param context 上下文
  16. */
  17. some: typeof some;
  18. }
  19. }
  20. export default some