contains method

contains(name)

Determines whether the collection contains a property with the given name.

contains(name: string)
ParameterTypeDescription
namestringCase-sensitive name of the property to locate.

Returns

true if the item is found in the collection; otherwise, false.

See Also