ts-belt
ts-belt copied to clipboard
Docs should clarify on depth of object-related functions
I think it would be helpful if the API documentation would give clarification on whether or not functions such as F.equals
or D.merge
are shallow or deep. We can work this out by looking at the source code, but this shouldn't be necessary and is espescially annoying for people who don't know rescript.
Another one to include could be the comparison performed in A.includes
It seems from looking at the source as a ReScript noob that D.merge
is, in fact, shallow?
@jrolfs D.merge
uses Object.assign
under the hood :)
Hehe, yep that was my conclusion — would you be open to adding a deepMerge
implementation? I've been considering switching some projects over from Ramda and it would make the switch more compelling ;)
I'd love to see deepMerge
happen. Is anyone aware of any work on it?