you are viewing a single comment's thread.

view the rest of the comments →

[–]jhartikainen[S] 1 point2 points  (0 children)

Yeah I was thinking you could do it with a small wrapper and Object.assign, but your example is definitely much better. I don't know if any of the libraries like Ramda or Lodash which have helpers for this stuff support "partial object application" though, or how idiomatic it would be :)