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