containsLinkData method

bool containsLinkData(
  1. Object linkdata
)

Decide if a given link data object is in this model, using reference equality.

If you do not have a reference to the particular data object that is in the #linkDataArray, you may need to search for it by iterating through that Array, or (more likely), by finding the desired Link in a Diagram and getting that link's Panel#data.

Note that because link data are not assumed to be have a unique key property they cannot be found using an index that this model would maintain. However you may choose to provide such a property on the link data objects and maintain your own index. @param {ObjectData} linkdata a JavaScript object represented by a link. @return {boolean} @see #addLinkData @see #removeLinkData

Implementation

_i2.bool containsLinkData(_i2.Object linkdata) => _i4.callMethod(
      this,
      'containsLinkData',
      [linkdata],
    );