in lib/h3core.js [721:730]
export function getIndexDigit(h3Index, digit) {
const out = C._malloc(SZ_INT);
const [lower, upper] = h3IndexToSplitLong(h3Index);
try {
throwIfError(H3.getIndexDigit(lower, upper, digit, out));
return C.getValue(out, 'i32');
} finally {
C._free(out);
}
}