I filtered an array and now I'm using .map() to convert each element in the array to an integer. This returns an array that contains "NaN" only. My goal here is to return the array converted into integers.
fetchData = d3.csv("https://gist.githubusercontent.com/dakoop/9e67814b6073ebbf6e7f55e31b5781ce/raw/5dad34b939d0d0789570064a75b145cc255f2811/newspaper-circulation.csv");
{
const a = fetchData;
var b = a.filter(d => d.Year != "1940" && d.Year != "2010");
return b.map(x => parseInt(x))
}