contains

fun contains(primitive: Any? = definedExternally): Boolean(source)

Determines if this collection contains a primitive.

Return

true if the primitive is in the collection; false if the primitive is undefined or was not found in the collection.

Parameters

primitive

The primitive to check for.

See also