Creates a new object with properties that do not satisfy the predicate.
创建一个新对象,排除满足 predicate 的属性
The type of the source object / 源对象类型
The source object. 源对象
The predicate function. 谓词函数
A new object without properties that satisfy the predicate. 排除满足谓词属性的新对象
An own __proto__ key is ignored, so untrusted input can neither replace the prototype of the result.
__proto__
源对象自有的 __proto__ 键会被忽略,避免不可信输入替换结果原型。
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 的属性