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

assign should keep unique values #249

Merged
merged 1 commit into from
Jun 26, 2023
Merged

Conversation

apstanisic
Copy link
Contributor

Description

assign should keep unique properties of both object.

issue reproduction example

Checklist

  • Changes are covered by tests if behavior has been changed or added
  • Tests have 100% coverage
  • If code changes were made, the version in package.json has been bumped (matching semver)
  • If code changes were made, the yarn build command has been run and to update the cdn directory
  • If code changes were made, the documentation (in the /docs directory) has been updated

Resolves

Resolves #247

@vercel
Copy link

vercel bot commented Feb 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
radash-docs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 7, 2023 at 0:45AM (UTC)

})()
}
}, {} as X)
if (!initial || !override) return initial ?? override ?? {}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this to one liner to save few bytes. Should I revert it?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit different style but still clean, I like it, let's keep it.

@tsa96
Copy link

tsa96 commented Mar 11, 2023

Any news on this? I have a really ugly temp implementation in my codebase at the moment, waiting until this gets merged in so I can remove it, would be a shame if this PR went stale.

@sodiray
Copy link
Owner

sodiray commented Jun 26, 2023

@tsa96 and @apstanisic I'm merging this. Appreciate the contribution and the patience 🙏 it will be available later today when v11.0.0 is published.

@sodiray sodiray merged commit 9266717 into sodiray:master Jun 26, 2023
aleclarson referenced this pull request in radashi-org/radashi Jun 24, 2024
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.

Lodash merge equivalent
3 participants