function extension(type) {
  const match = EXTRACT_TYPE_REGEXP.exec(type);
  if (!match) {
    return;
  }
  const exts = extensions.get(match[1].toLowerCase());
  if (!exts || !exts.length) {
    return;
  }
  return exts[0];
}
/** Given a media type, return the most appropriate extension or return
 * `undefined` if there is none.
 */
Given a media type, return the most appropriate extension or return
`undefined` if there is none.
Given a media type return the most appropriate extension or return ` undefined ` if there is none .
function extension(type) {
  const match = EXTRACT_TYPE_REGEXP.exec(type);
  if (!match) {
    return;
  }
  const exts = extensions.get(match[1].toLowerCase());
  if (!exts || !exts.length) {
    return;
  }
  return exts[0];
}
function extension ( type ) { const match = EXTRACT_TYPE_REGEXP . exec ( type ) ; if ( ! match ) { return ; } const exts = extensions . get ( match [ 1 ] . toLowerCase ( ) ) ; if ( ! exts || ! exts . length ) { return ; } return exts [ 0 ] ; }
Given a media type, return the most appropriate extension or return
 `undefined` if there is none.
Given a media type return the most appropriate extension or return ` undefined ` if there is none .