Closed stof closed 5 years ago
I have false positives for no-jquery/no-map or similar methods right now, for code like this:
no-jquery/no-map
$col.toArray().map(someCallback)
In this case, .map is already a call to Array.prototype.map, not to jQuery.map, because toArray() returns an array, not a jQuery collection.
.map
Array.prototype.map
jQuery.map
toArray()
btw, both no-map and no-map-collection are catching that call.
no-map
no-map-collection
I have false positives for
no-jquery/no-map
or similar methods right now, for code like this:In this case,
.map
is already a call toArray.prototype.map
, not tojQuery.map
, becausetoArray()
returns an array, not a jQuery collection.