Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetchSubmission.js - includes called on empty array. #2

Open
bug-cop opened this issue Aug 19, 2020 · 1 comment
Open

fetchSubmission.js - includes called on empty array. #2

bug-cop opened this issue Aug 19, 2020 · 1 comment

Comments

@bug-cop
Copy link

bug-cop commented Aug 19, 2020

}) => ({ id, slug })).filter(({ id }) => solved.includes(id)).sort((a, b) => a.id - b.id)

solved = []
solved.includes(id) 

will always return false

@raghav4
Copy link

raghav4 commented Sep 11, 2020

It didn't work for the question as well, I'm getting this in txt file

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants