Home > @i2analyze/notebook-sdk > data > IKeyedReadOnlyCollection > has
data.IKeyedReadOnlyCollection.has() method
Tests whether an object with the specified key exists.
Signature:
has(key: K): boolean;
Introduced: version 1.0
Parameters
Parameter | Type | Description |
---|---|---|
key | K | The key of the object to check for presence in the collection. |
Returns:
boolean
true
if the object exists in the collection; false
otherwise.