I saw the usage of this syntax ";(($) => " in a web project, a freelancer helped me with. This keeps failing to work on IE. Works fine on chrome and other browsers. Is shown as a syntax error on IE.
The website uses Laravel, but this seems to me more of a javascript thing, maybe a closure or something?
This is what an example code looks like :
;(($) => {
$.fn.UpdateEquipment = () => {
return $(this).each(() => {
let equipment = new Equipment;
equipment.createEquipment();
equipment.editEquipment();
equipment.updateEquipment();
equipment.deleteEquipment();
});
}
Can anyone help me on this, please?