You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To improve interoperability, it seems wise to alias scan.contains as something else. Currently scan aliases scan.contains as scan.inNode. Maybe scan.descends is a better name?
Yet it seems repetitive to recreate .indexOf functionality here. It is unneeded internally and could be provided (to an ender build, etc.) as needed by a utility module such as underscore, who aliases _.contains as _.include:
To improve interoperability, it seems wise to alias
scan.contains
as something else. Currently scan aliasesscan.contains
asscan.inNode
. Maybescan.descends
is a better name?Compare
jQuery.contains
vs._.contains
vs"".contains
. Something like this combines those:Yet it seems repetitive to recreate
.indexOf
functionality here. It is unneeded internally and could be provided (to an ender build, etc.) as needed by a utility module such as underscore, who aliases_.contains
as_.include
:_.include
also supports checking in non-array-like objects.The text was updated successfully, but these errors were encountered: