You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to merge a @js-joda/core type, these apparently can't be cloned simply by value... so I'm looking at customMerge, but I realize I'll more or less have to write it for every key... I mean, I can do some functional magic... What I'd really like to do, is have some kind of a check function that could work on the constructor, and then run the custom merge.
this way the algorithm will just continue if should returns false
in this case all I really want is to return right if defined, and left if not, since these are immutable value objects no need to try to do a special copy.
The text was updated successfully, but these errors were encountered:
I want to merge a
@js-joda/core
type, these apparently can't be cloned simply by value... so I'm looking at customMerge, but I realize I'll more or less have to write it for every key... I mean, I can do some functional magic... What I'd really like to do, is have some kind of a check function that could work on the constructor, and then run the custom merge.maybe something like
this way the algorithm will just continue if should returns false
in this case all I really want is to return right if defined, and left if not, since these are immutable value objects no need to try to do a special copy.
The text was updated successfully, but these errors were encountered: