Three weeks ago, we’ve released ramda-adjunct v2.19.0. This release brings two distinct new features into the library and one enhancement. Let’s not waste time and let’s dig into it.
Flattens the list to the specified depth. It’s full equivalent to the new Array.prototype.flat function but it’s interface is functional and auto-curried. Under the hood it doesn’t use Array.prototype.flat, but uses custom implementation of flattening from ramda. We can make this even better and use Array.prototype.flat if available, and fall back to custom algorithm only when needed. PRs are welcome! ;]
Returns false if both arguments are truthy; true otherwise. Again this addition is community contribution and can become handy is some logical compositions.
I think I don’t need to explain what this function does ;] This function received an enhancement of supporting ramda placeholder. Let me demonstrate what it means.
Additionally we made some internal changes not visible to outside observer like reorganizing our TypeScript typings and testing them properly using tool called dtslint. We’re currently on version v2.19.3, because we were experimenting with opencollective postinstall scripts. These experiments did not go well…
Like always, I end my article with the following axiom: Define your code-base as pure functions and lift them only if needed. And compose, compose, compose…