ramda / ramda

:ram: Practical functional Javascript

Home Page:https://ramdajs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

R.without broke backwards compatibility on #2603

manotas-scv opened this issue · comments

Previous to 0.29.0:

R.without('abc', ['abc'])

returned an empty array

After 0.29.0 it doesn't.

The doc indicates that both arguments should be arrays, and I think that is the proper behavior. This happened when migrating from loadsh to ramda, which has a different behavior.

I don't expect it to work as before, but I'd suggest either a warning/error when the first argument is not an array, or a note on the migration guide.

Thank you, upgrade guide updated!