Found no return statements in callbacks of array methods JS-0042
Anti-pattern
Major
5 months ago3 years old
Array.prototype.filter() expects a value to be returned at the end of function
 1605      const i = this
 1606      if (typeof e !== 'string') {
 1607        return this.pushStack(
 1608          k(e).filter(function () { 1609            for (t = 0; t < r; t++) if (k.contains(i[t], this)) return !0
 1610          })
 1611        )
Array.prototype.filter() expects a value to be returned at the end of function
 1678    has: function (e) {
 1679      const t = k(e, this)
 1680      const n = t.length
 1681      return this.filter(function () { 1682        for (let e = 0; e < n; e++) if (k.contains(this, t[e])) return !0
 1683      })
 1684    },