function getDirectedEdgeOrigin(edgeIndex) {
    const [lower, upper] = h3IndexToSplitLong(edgeIndex);
    const h3Index = C._malloc(SZ_H3INDEX);
    try {
        throwIfError(H3.getDirectedEdgeOrigin(lower, upper, h3Index));
        return validateH3Index(readH3IndexFromPointer(h3Index));
    } finally {
        C._free(h3Index);
    }
}
Get the origin hexagon from an H3 index representing a unidirectional edge
@static
@param  {H3IndexInput} edgeIndex H3 index of the edge
@return {H3Index}           H3 index of the edge origin
@throws {H3Error}           If the input is invalid