TypeError: `users.filter is not a function`

Viewed 12

I am coding the authentication for an app and a couple of days ago this line: res.json(users.filter(user => user.username === req.user.username)) worked perfectly, but now when I send the requests in the requests.rest file it says: TypeError: users.filter is not a function. Someone help me please.

0 Answers
Related