Function filter

  • 按照规则过滤出符合条件的属性及值

    Returns

    Type Parameters

    • T extends AnyObject<any>

    Parameters

    • input: T
    • matcher: ((item: [string | number, unknown]) => boolean)
        • (item: [string | number, unknown]): boolean
        • Parameters

          • item: [string | number, unknown]

          Returns boolean

    • param2: {
          deep?: boolean;
          empty?: "trim" | "reserve";
      } = {}
      • Optional deep?: boolean
      • Optional empty?: "trim" | "reserve"

    Returns Partial<T>

Generated using TypeDoc