So I was just reading the code of Loading Overlay plugin for jquery. At the beginning, I can see the following line of code.
! function(e) {
"function" == typeof define && define.amd ? define(["jquery"], e) : "object" == typeof module && module.exports ? e(require("jquery")) : e(jQuery)
}
What does it mean to write "!" in front of "function" and that too at the beginning of the file. As per my knowledge, "!" is a not operator.
-> So is this a JavaScript's inbuilt syntax or the Author is trying to create some logic?
Please explain this in simple layman terms as I have not found anything regarding this on Google.