Vladimir Gorej
Sep 5 · 2 min read
ramda-adjunct v2.19.0

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.

flattenDepth

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! ;]

nand

Returns false if both arguments are truthy; true otherwise. Again this addition is community contribution and can become handy is some logical compositions.

isNotFloat

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…

Ramda Adjunct

Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.

Vladimir Gorej

Written by

Ramda Adjunct

Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade