elementSet.keys

One string key per element, equal for the same element of the same revision and node.

Value helperSince 0.3.0

Usage

TypeScript
ElementSet.keys(s: ElementSet): string[]

Parameters

  • sElementSet

    The element set.

    Required

Returns

One key per listed element, in order: revision|node|kind| followed by the index, e<lo>:<hi>, c<i>,<j>, p<pid>, n<node> or k<connection>; [] for an empty set.

Example

TypeScript
ElementSet.keys(ElementSet.edges([[3, 1]], { node: 'box1' })) // → ['|box1|edge|e1:3']

See also