function directedEdgeToCells(edgeIndex) {
    const [lower, upper] = h3IndexToSplitLong(edgeIndex);
    const count = 2;
    const hexagons = C._calloc(count, SZ_H3INDEX);
    try {
        throwIfError(H3.directedEdgeToCells(lower, upper, hexagons));
        return readArrayOfH3Indexes(hexagons, count);
    } finally {
        C._free(hexagons);
    }
}
Get the [origin, destination] pair represented by a unidirectional edge
@static
@param  {H3IndexInput} edgeIndex H3 index of the edge
@return {H3Index[]}         [origin, destination] pair as H3 indexes
@throws {H3Error}           If the input is invalid