-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: handle nested arrays with wildcard keys (#120)
* feat: handle nested arrays with wildcard keys * perf: only get the key attributes once * perf: handle trivial cases directly * perf: cache the length of the string that's iterated over * fix: type errors and warnings * fix: recurse instead of duplicate, forgoing implicit wildcards * fix: implicitly handle nested keys that are an array of values again * refactor: remove reduces * refactor: remove ts-expect-errors * refactor: forgo for-of loops in favor of performance Co-authored-by: Kent C. Dodds <[email protected]>
- Loading branch information
1 parent
4c2e927
commit b3d9d8d
Showing
3 changed files
with
207 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters