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
required
Type: Array | NodeList | string
subValue
required
Type: any

Return value

Whether the value is contained.

Type: boolean