Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safely delete properties using lodash/omit #543

Merged
merged 1 commit into from
Nov 20, 2019
Merged

Safely delete properties using lodash/omit #543

merged 1 commit into from
Nov 20, 2019

Conversation

daffl
Copy link
Member

@daffl daffl commented Nov 20, 2019

This pull request removes the delete-by-dot and related helpers and instead removes properties safely by using lodash _.omit. As with the move to other Lodash utilities in #541 it has been thoroughly tested, performance optimized and comes with predictable, well documented behaviour.

Most importantly, this change does no longer mutate existing objects which can cause many hard to debug issues and unexpected behaviour.

@daffl daffl changed the title Safely mutate properties using lodash/omit Safely delete properties using lodash/omit Nov 20, 2019
@marshallswain
Copy link
Member

:shipit:

@daffl daffl merged commit adb80ce into master Nov 20, 2019
@daffl daffl deleted the lodash-omit branch November 20, 2019 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants