You have not to leave array.map without variable or property (bad example). Here you can to assign it to variable if you need new array of elements from old array (first good example ) or continue to work with new array with other property (second good example). Look carefully at examples.
The following pattern is considered a warning:
users.map(user=> user.status = "ACTIVE");
The following pattern is not considered a warning:
var users = [{id: 1}, {id: 2}, {id: 3}];
const usersIds = users.map(user => user.id);
var users = [{id: 1}, {id: 2}, {id: 3}];
users.map(user => user.id).forEach( id => { console.log(id) } );