Creates a new object with properties that satisfy the predicate.
创建一个新对象,仅包含满足 predicate 的属性
The source object. 源对象
The predicate function. 谓词函数
A new object with properties that satisfy the predicate. 满足谓词的新对象
pickBy({ a: 1, b: 2, c: 3 }, (v) => v > 1) // => { b: 2, c: 3 } Copy
pickBy({ a: 1, b: 2, c: 3 }, (v) => v > 1) // => { b: 2, c: 3 }
Creates a new object with properties that satisfy the predicate.
创建一个新对象,仅包含满足 predicate 的属性