Edit this page

up.util up.util.contains(value, subValue)
JavaScript function

Returns whether the given value contains another value.

If value is a string, this returns whether subValue is a sub-string of value.

If value is an array, this returns whether subValue is an element of value.

Parameters

value ArrayorNodeListorstring
subValue any