Earlier quoted context omitted.
That's because they are. Functional code is more readable. And if you look back, basically all advances in programming languages have been about "making stuff more readable". Thus, for loops (for this usage) are "old".
> Functional code is more readable. There is no way that name: R.pipe(R.prop('name'), R.toUpper), age: R.prop('age'), isAdult: R.always(true) is more readable than name: user.name.toUpperCase(), age: user.age, isAdult: true
But instead of
for (const i=0; i
you can write const new_data = old_data.map((x) => x.toUpperCase());
I think it's both more clear and less error-prone.