function originToDirectedEdges(h3Index) {
    const [lower, upper] = h3IndexToSplitLong(h3Index);
    const count = 6;
    const edges = C._calloc(count, SZ_H3INDEX);
    try {
        throwIfError(H3.originToDirectedEdges(lower, upper, edges));
        return readArrayOfH3Indexes(edges, count);
    } finally {
        C._free(edges);
    }
}
Get all of the unidirectional edges with the given H3 index as the origin (i.e. an edge to
every neighbor)
@static
@param  {H3IndexInput} h3Index   H3 index of the origin hexagon
@return {H3Index[]}         List of unidirectional edges
@throws {H3Error}           If the input is invalid