-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed lodash from data-manipulation and sanitize model plugins
- only some small micro-optimizations but we can remove lodash from a sanitize plugin method (needs an empty object fallback because Object.keys is less forgiving than _.keys and there are some tests which don't fully initialize the model) - also converts the data-manipulation plugins into for-loops because there are more native than using lodash, and it means we can remove lodash from this file too - lodash is a bit of a perf burn on extreme hotpaths, so it's good to clean it up where it's not needed - adds a bit of JSDoc to help with editor autocomplete
- Loading branch information
1 parent
6d7c711
commit 29ee00f
Showing
2 changed files
with
22 additions
and
15 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