I want to use the CSV file data for autosuggestion. But I can't load the data in my console.
My Code is
     var return_first = function () {
        var tmp = null;
        $.ajax({
            
             url:"state_abbrs.csv",
             dataType: "text",
             success: function (data) {
             var data=data.split(/\r?\n|\r/);
    
                tmp = data;
            }
        });
        return tmp;
    }();
    console.log(return_first);
