R.without broke backwards compatibility on #2603
manotas-scv opened this issue · comments
Manotas commented
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.
Kevin Wallace commented
Thank you, upgrade guide updated!