- Preparing search index...
- The search index is not available
yatter
- filter<T>(input: T, matcher: ((item: [string | number, unknown]) => boolean), param2?: {
deep?: boolean;
empty?: "trim" | "reserve";
}): Partial<T>
-
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>
按照规则过滤出符合条件的属性及值
Returns