pluck.d.ts 302 B

123456789101112131415
  1. /**
  2. * 获取数组对象中某属性值,返回一个数组
  3. * @param array 数组
  4. * @param key 键
  5. * @example
  6. */
  7. export declare function pluck(array: any[], key: string | number): any[];
  8. declare module './ctor' {
  9. interface XEUtilsMethods {
  10. pluck: typeof pluck;
  11. }
  12. }
  13. export default pluck