I'm trying to use an arrow function within jQuery's map function. With the following titlesText is the correct length but each string is empty:
let titles = $(panelBody).find('h4');
let titlesText = $(titles).map(title => $(title).text());
My ES6 transpiling is working, and jQuery is working. Any ideas?