How do I get the return from {data.name} out of the function list?
This form in low does not return: /
function list(){
$.get( "<?php echo BASE_URL;?>/open/start/list", function( data ) {
data = typeof data == 'string' ? JSON.parse(data) : data;
return data.name;
});
}
//Trazer o retorno de data.name
console.log(list());