DEV Community

loading...

Discussion on: Count Item Occurrences in an Array JavaScript Solution

Collapse
hellodevworldblog profile image
Hello Dev World Blog Author

I’m surprised that run 33% faster as it’s very similar to the first solution but it’s also possible that the .flat function isn’t super performant (wouldn’t surprise me) I’ll have to check that out tomorrow!