index.js
function findMeta(any, key) {
  key = key || 'cql';
  var meta = (any.describe().meta || []).filter(function (m) {
    return key in m;
  });
  return meta[meta.length - 1];
}
function findMeta(any, key) {
  key = key || 'cql';
  var meta = (any.describe().meta || []).filter(function (m) {
    return key in m;
  });
  return meta[meta.length - 1];
}
function findMeta ( any , key ) { key = key || 'cql' ; var meta = ( any . describe ( ) . meta || [ ] ) . filter ( function ( m ) { return key in m ; } ) ; return meta [ meta . length - 1 ] ; }
Find the meta object that has the key given.

@param {Joi} any - the validator to be inspected
@param {String} key - the name of the field in the meta object that we are looking for
@returns {JoiMetaDefinition} - the result
Find the meta object that has the key given .