In a Javascript file, how can I tell to stop run the rest code?
For example,
if (typeof $==="undefined") return;
return doesn't work as it can only be used in a function.
I don't want to throw an exception either.
In a Javascript file, how can I tell to stop run the rest code?
For example,
if (typeof $==="undefined") return;
return doesn't work as it can only be used in a function.
I don't want to throw an exception either.