I'd would like to better understand javascript arrow functions as being used in the below d3 code. I've read some tuts on the topic but a translation of the below code would help me better understand how it is used in this particular case. What is the equivalent of this code in ES5?
d3.csv('data/harry_potter.csv').then(res => {
console.log('Local csv', res);
});