5558 return null == e ? "" : (e + "").replace(Xt, "");
5559 }),
5560 "function" == typeof define &&
5561 define.amd && 5562 define("jquery", [], function () {
5563 return S;
5564 });
5559 }),
5560 "function" == typeof define &&
5561 define.amd &&
5562 define("jquery", [], function () { 5563 return S;
5564 });
5565 var Vt = C.jQuery,
5636 if (typeof exports == "object") {
5637 // For Node.js.
5638 module.exports = factory(root);
5639 } else if (typeof define == "function" && define.amd) { 5640 // For AMD. Register as an anonymous module.
5641 define([], factory.bind(root, root));
5642 } else {
5638 module.exports = factory(root);
5639 } else if (typeof define == "function" && define.amd) {
5640 // For AMD. Register as an anonymous module.
5641 define([], factory.bind(root, root)); 5642 } else {
5643 // For browser globals (not exposing the function separately).
5644 factory(root);
5817 "use strict";
5818 if (typeof exports === "object" && typeof exports.nodeName !== "string") {
5819 e(require("jquery"));
5820 } else if (typeof define === "function" && define.amd) { 5821 define(["jquery"], e);
5822 } else {
5823 e(jQuery);
Variables that aren't defined, but accessed may throw reference errors at runtime.
Potential ReferenceError
s may result from misspellings of variable and parameter names, or accidental implicit globals (for example, forgetting the var
keyword in a for
loop initializer).
Any reference to an undeclared variable causes a warning, unless the variable is explicitly mentioned in a /*global ...*/
comment, or specified in the globals key in the configuration file.
A common use case for these is if you intentionally use globals that are defined elsewhere (e.g. in a script sourced from HTML).
const foo = someFunction();
const bar = a + 1; // 'a' is undeclared
/*global someFunction, a*/
/*eslint no-undef: "error"*/
const foo = someFunction();
const bar = a + 1;