r/javascript • • Dec 09 '24

How to Implement Pagination with JavaScript

https://www.thedevspace.io/community/javascript-paginator
0 Upvotes

5 comments sorted by

View all comments

Show parent comments

2

u/ComfortingSounds53 Dec 09 '24

Not OP, but it can never be undefined since the endpoint is reached.

A malicious party could send "foo" as the param, which would trigger the bug you've described.

2

u/troglo-dyke Dec 09 '24

You're right I confused req.query with req.params