Dec 5, 2023
I disagree because flatMap is less readable and less performant so there is no benefit. The fact that the array is only traversed once is irrelevant since each iteration is more than twice as expensive.
I disagree because flatMap is less readable and less performant so there is no benefit. The fact that the array is only traversed once is irrelevant since each iteration is more than twice as expensive.
Creator of https://capitalisk.com/ and SocketCluster http://socketcluster.io, ex-Lisk developer. https://github.com/jondubois