Skip to content

batchUnset

Functions

batchUnset()

batchUnset(object, keys): boolean[]

批量执行 lodash.unset

Parameters

ParameterTypeDefault valueDescription
objectanyundefined目标对象
keysPropertyPath[][]属性列表

Returns

boolean[]

Example

ts
batchUnset({ a: 1, b: { c: 2, d: 4, e: 5 } }, ['a', 'b.e'])
// => { b: { c: 2, d: 4 } }