willtheorangeguy / Note-Style-Guide

Consider using arrow functions for callbacks JS-0241
Anti-pattern
Minor
5 months ago2 years old
 4652            return null == n
 4653              ? null
 4654              : Array.isArray(n)
 4655                ? S.map(n, function (e) { 4656                    return { name: t.name, value: e.replace(Et, "\r\n") }; 4657                  }) 4658                : { name: t.name, value: n.replace(Et, "\r\n") };
 4659          })
 4660          .get();
 4375                : "number" == typeof t
 4376                  ? (t += "")
 4377                  : Array.isArray(t) &&
 4378                    (t = S.map(t, function (e) { 4379                      return null == e ? "" : e + ""; 4380                    })), 4381              ((r =
 4382                S.valHooks[this.type] ||
 4383                S.valHooks[this.nodeName.toLowerCase()]) &&
 1590            return (e === n) !== r;
 1591          })
 1592        : "string" != typeof n
 1593          ? S.grep(e, function (e) { 1594              return -1 < i.call(n, e) !== r; 1595            }) 1596          : S.filter(n, e, r);
 1597  }
 1598  (S.filter = function (e, t, n) {
 1586          return !!n.call(e, t, e) !== r;
 1587        })
 1588      : n.nodeType
 1589        ? S.grep(e, function (e) { 1590            return (e === n) !== r; 1591          }) 1592        : "string" != typeof n
 1593          ? S.grep(e, function (e) {
 1594              return -1 < i.call(n, e) !== r;
 1063              : 1 < a.length
 1064                ? ((t = [e, e, "", o]),
 1065                  b.setFilters.hasOwnProperty(e.toLowerCase())
 1066                    ? le(function (e, t) { 1067                        var n, 1068                          r = a(e, o), 1069                          i = r.length; 1070                        while (i--) e[(n = P(e, r[i]))] = !(t[n] = r[i]); 1071                      }) 1072                    : function (e) {
 1073                        return a(e, 0, t);
 1074                      })