Skip to content

Commit

Permalink
clarify what is path for unset
Browse files Browse the repository at this point in the history
  • Loading branch information
ultrox committed May 19, 2024
1 parent cdec16d commit 8f4dc48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/unset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import stringToPath from './stringToPath';

/**
* Removes the property at `path` of `object`.
* @remarks `path` could be string or 'a.b.c' or 'a[0].b.c' whatever register() accepts
* @example
* const obj = { a: { b: { c: 42 } } };
* unset(obj, 'a.b.c');
Expand Down

0 comments on commit 8f4dc48

Please sign in to comment.