diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 5f0c07777..8de594692 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -23,7 +23,7 @@ declare module _ { * indexBy, initial, intersection, invert, invoke, keys, map, max, memoize, merge, min, * object, omit, once, pairs, partial, partialRight, pick, pluck, pull, push, range, reject, * remove, rest, reverse, sample, shuffle, slice, sort, sortBy, splice, tap, throttle, times, - * toArray, transform, union, uniq, unshift, unzip, values, where, without, wrap, and zip + * toArray, transform, union, uniq, unset, unshift, unzip, values, where, without, wrap, and zip * * The non-chainable wrapper functions are: * clone, cloneDeep, contains, escape, every, find, findIndex, findKey, findLast, @@ -3672,6 +3672,21 @@ declare module _ { ): LoDashExplicitArrayWrapper; } + //_.unset + interface LoDashStatic { + /** + * Removes the property at path of object. + * + * @param object The object to modify. + * @param path The path of the property to unset. + * @return Returns true if the property is deleted, else false. + */ + unset( + object: T, + path: StringRepresentable | StringRepresentable[] + ): boolean; + } + //_.unzip interface LoDashStatic { /**