DEV Community

Discussion on: Flatten and Sort an Array of Arrays JavaScript

Collapse
 
pavlikovinc profile image
George

Thx for explanation. It seems you forgot to change the name of the function where the recursion starts. Change it from 'flatten' to 'flattenFilterAndSort'.