I would like to get a varible from inside .then function. I cannot return the variable called d.isOnline to where it is called.Can you help me ? Thanks.
function find_online(id){
            Store.Presence.find(id).then(function(d){
                if (d.isOnline)
                    return d.isOnline;
                else
                    return d.isOnline;
            });
        }
var id = '1234';
var isOnline = find_online(id);  //I CANNOT GET IT HERE
