DEV Community

loading...

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'.

Collapse
hellodevworldblog profile image
Hello Dev World Blog Author

lol thank you! I did that in the video too I have updated!