"use strict";

exports.__esModule = true;
exports.getNodeOrLeaf = getNodeOrLeaf;
var _NestedTableLeafNodeState = require("./NestedTableLeafNodeState");
function getNodeOrLeaf(parentNode, keyedItem) {
  const node = parentNode.parentKeyToChildrenMap.get(keyedItem.key);
  return node ?? new _NestedTableLeafNodeState.NestedTableLeafNodeState({
    parentNode,
    parent: keyedItem
  });
}
//# sourceMappingURL=getNodeOrLeaf.js.map