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
There's a method in Any called contains?, and it's essentially a wrapper for the includes? method if the underlying value is an Array or String. Replacing it with a method called includes? would make this far more consistent with the core library.
It also returns a false value if the underlying object isn't an Array or String. Is this the best behaviour, or should it raise an exception in this situation?
The text was updated successfully, but these errors were encountered:
There's a method in
Any
calledcontains?
, and it's essentially a wrapper for theincludes?
method if the underlying value is anArray
orString
. Replacing it with a method calledincludes?
would make this far more consistent with the core library.It also returns a
false
value if the underlying object isn't anArray
orString.
Is this the best behaviour, or should it raise an exception in this situation?The text was updated successfully, but these errors were encountered: