Tell us what’s happening:
Im stuck on the last challenge. I tried testing it on my own and it returns the expected results. i dont know what am i doing wrong here. Please help me. I
For the last test, you are returning an empty log array.
I believe your limit filter is causing the data returned to not contain the two needed objects for the to/from condition inside the map. So they work separately (to/from or limit) but not both at the same time (to/from and limit).
I updated the code a little. i removed the limit filter and added it in the to/from condition, making it (to/from && limit). And i tried removing the null array condition. I only placed it there to return an empty array incase if none pass the condition as otherwise the map returns an array full of nulls. You can check the updated repository.
Nevertheless, it still wont let me pass it.
i have similar problem, exactly on the last test about from, to and limit request queries.
it returns the same as the example project does, code works fine. do u have any solution about this?
thanks.
here is my replit project link: boilerplate-project-exercisetracker - Replit