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

.set cannot set an object value to undefined. #432

Open
uxuip opened this issue Oct 16, 2024 · 2 comments
Open

.set cannot set an object value to undefined. #432

uxuip opened this issue Oct 16, 2024 · 2 comments

Comments

@uxuip
Copy link

uxuip commented Oct 16, 2024

I want to set the value of an object to undefined, but in radash, only the initial object is returned, which is different from the lodash implementation.

radash

if (!path || value === undefined) return initial

refer

https://codepen.io/uxuip/pen/OJKmMQX

example

image

@aleclarson
Copy link

The Radashi fork would accept a PR for this. See you over there :)

@aleclarson
Copy link

aleclarson commented Nov 13, 2024

This is being tracked here: https://github.com/orgs/radashi-org/discussions/296

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

No branches or pull requests

2 participants