function getPentagons(res) {
    validateRes(res);
    const count = H3.pentagonCount();
    const hexagons = C._malloc(SZ_H3INDEX * count);
    try {
        throwIfError(H3.getPentagons(res, hexagons));
        return readArrayOfH3Indexes(hexagons, count);
    } finally {
        C._free(hexagons);
    }
}
Get the twelve pentagon indexes at a given resolution.
@static
@param  {number} res  Hexagon resolution
@return {H3Index[]}   All H3 pentagon indexes at res
@throws {H3Error}     If the resolution is invalid