in lib/h3core.js [1805:1815]
export 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);
}
}