function latLngToCell(lat, lng, res) {
    const latLng = C._malloc(SZ_LATLNG);
    // Slightly more efficient way to set the memory
    C.HEAPF64.set([lat, lng].map(degsToRads), latLng / SZ_DBL);
    // Read value as a split long
    const h3Index = C._malloc(SZ_H3INDEX);
    try {
        throwIfError(H3.latLngToCell(latLng, res, h3Index));
        return validateH3Index(readH3IndexFromPointer(h3Index));
    } finally {
        C._free(h3Index);
        C._free(latLng);
    }
}
Get the hexagon containing a lat,lon point
@static
@param  {number} lat Latitude of point
@param  {number} lng Longtitude of point
@param  {number} res Resolution of hexagons to return
@return {H3Index}    H3 index
@throws {H3Error}    If input is invalid