I have a basic problem with Javascript. This code is below.
var users = [{"user":{"id":1,"username":"google"}},{"user":{"id":2,"username":"yahoo"}}]
const result = users.filter(users.id === 1);
console.log(result);
I want to get result if user_id
exist in array or not.
The error is:
false is not a function