[ {id:1, name:"bob", avatar:"!"} , {id:2, name:"sam", avatar:"""} , {id:3, name:"jane", avatar:"#"} , {id:4, name:"john", avatar:"$"} , {id:5, name:"paul"} , {id:6, avatar:"%"} , {id:7} ] app.get('/users/:id', (req, res) => { let user = users.find(u => u.id == parseInt(req.params.id)) res.send(user !== undefined ? user : {}) }); 119 — @MontpellierJug