function validateRes(res) {
    if (typeof res !== 'number' || res < 0 || res > 15 || Math.floor(res) !== res) {
        throw H3LibraryError(E_RES_DOMAIN, res);
    }
    return res;
}
Validate a resolution, throwing an error if invalid
@private
@param  {unknown} res Value to validate
@return {number}      Valid res
@throws {H3Error}     If invalid