I have a csv file which contains a list of airports and its coordinates.
JFK, 40.63980103, -73.77890015
LAX, 33.94250107, -118.4079971
SEA, 47.44900131, -122.3089981
How would I parse the content into a Javascript object like this?
{
JFK: { lat: 40.63980103, lng: -73.77890015 },
LAX: { lat: 33.94250107, lng: -118.4079971 },
SEA: { lat: 47.44900131, lng: -122.3089981 }
}