in lib/h3core.js [1276:1286]
export function cellsToDirectedEdge(origin, destination) {
const [oLower, oUpper] = h3IndexToSplitLong(origin);
const [dLower, dUpper] = h3IndexToSplitLong(destination);
const h3Index = C._malloc(SZ_H3INDEX);
try {
throwIfError(H3.cellsToDirectedEdge(oLower, oUpper, dLower, dUpper, h3Index));
return validateH3Index(readH3IndexFromPointer(h3Index));
} finally {
C._free(h3Index);
}
}