Sure thing! I'll create an article about currying and mention you on it for pushing the idea if you don't mind ^_^ ... about the TS implementation, that update function could look something like this:
constupdate=// Generic for the property name<PropertyextendsPropertyKey>(property:Property)=>// Generic for the value<Value>(value:Value)=>// We expect the "Source" object to be an object of unknown properties<SourceextendsRecord<PropertyKey,unknown>>(object:Source,// We return that Source combined with the new property and value):Source&{[propertyinProperty]:Value}=>({...object,[property]:value,});
I do love to do TS + FP, so creating an article about this might be interesting for other folks as well 😄
Sure thing! I'll create an article about currying and mention you on it for pushing the idea if you don't mind ^_^ ... about the TS implementation, that
updatefunction could look something like this:I do love to do TS + FP, so creating an article about this might be interesting for other folks as well 😄
Awesome! No one yet wrote article in my honor, I'm flattered :)
I wish it could explain "Why" and "When to use" no less than "How to use", so pros and cons.
So far carrying looks like a lego and there is something in it, definitely there is something about it.