Use flatMap to map over an array and flatten the result array in one go! ... depth of 1. Then it is better to NOT use flatMap() and just call the methods separately ... So we can use that knowledge to make flatMap act kind of like filter method.
typescript-flatmap-is-not-a-function
939c2ea5af
typescript flatmap function, typescript flatmap is not a function
コメント