packages/warriorjs-core/src/loadLevel.js
function loadAbilities(unit, abilities = {}) {
  Object.entries(abilities).forEach(([abilityName, abilityCreator]) => {
    const ability = abilityCreator(unit);
    unit.addAbility(abilityName, ability);
  });
}
function loadAbilities(unit, abilities = {}) {
  Object.entries(abilities).forEach(([abilityName, abilityCreator]) => {
    const ability = abilityCreator(unit);
    unit.addAbility(abilityName, ability);
  });
}
function loadAbilities ( unit , abilities = { } ) { Object . entries ( abilities ) . forEach ( ( [ abilityName , abilityCreator ] ) => { const ability = abilityCreator ( unit ) ; unit . addAbility ( abilityName , ability ) ; } ) ; }
Loads the abilities onto the unit.

@param {Unit} unit The unit.
@param {Object} abilities The abilities to load.
Loads the abilities onto the unit .