function getKeyPath()

in packages/showcase/sunbursts/basic-sunburst.js [39:47]


function getKeyPath(node) {
  if (!node.parent) {
    return ['root'];
  }

  return [(node.data && node.data.name) || node.name].concat(
    getKeyPath(node.parent)
  );
}