I have this code
App.Model('users').find(function (err, users) {
users.forEach(function(user) {
console.log(user.username);
});
});
//make usernames availible here.
This console logs the usernames. Instead of just logging to the console I want make use of the data.
But How can do this?
Thanks