Post

DevCast
DevCast@devcastcode·
@yasyaindr If you tried to do this with map(), you would end up with nested arrays: [[1, 2], [3, 4]]. You would then need to use flat() on that result to get [1, 2, 3, 4]. flatMap() is a more efficient way to handle both of those operations at once.
English
1
0
0
0
Paylaş