getKeyForNodeData method

dynamic getKeyForNodeData(
  1. Object nodedata
)

Given a node data object return its unique key: a number or a string. This returns undefined if there is no key value.

It is possible to change the key for a node data object by calling #setKeyForNodeData. @param {Object} nodedata a JavaScript object represented by a node, group, or non-link. @return {string|number|undefined} @see #nodeKeyProperty @see #setKeyForNodeData @see #findNodeDataForKey

Implementation

_i2.dynamic getKeyForNodeData(_i2.Object nodedata) => _i4.callMethod(
      this,
      'getKeyForNodeData',
      [nodedata],
    );