index.js
function scrapeEnergies(el, $, func) {
    const $el = $(el);

    $el.find("li").each(function (i, val) {
        const $val = $(val);
        const type = $val.attr("title");
        func(type, $val);
    });
}
function scrapeEnergies(el, $, func) {
    const $el = $(el);

    $el.find("li").each(function (i, val) {
        const $val = $(val);
        const type = $val.attr("title");
        func(type, $val);
    });
}
function scrapeEnergies ( el , $ , func ) { const $el = $ ( el ) ; $el . find ( "li" ) . each ( function ( i , val ) { const $val = $ ( val ) ; const type = $val . attr ( "title" ) ; func ( type , $val ) ; } ) ; }
Calls the callback function on each energy
@param el the DOM element to start scraping from
@param $ the query object el exists within
@param func called with (energy, $), where energy is the energy type (Fire etc.) and $ is a jQuery element for this energy
Calls the callback function on each energy