lib/utils.js
function isIgnored(ignore, tag, type, format) {
  // Clean svg+xml ==> svg
  const formatAlt = format && format.indexOf('+') ? format.split('+')[0] : null;

  if (!Array.isArray(ignore)) {
    ignore = [ignore];
  }

  return !!(
    ignore.includes(tag) ||
    ignore.includes(type) ||
    ignore.includes(format) ||
    ignore.includes(formatAlt)
  );
}
function isIgnored(ignore, tag, type, format) {
  // Clean svg+xml ==> svg
  const formatAlt = format && format.indexOf('+') ? format.split('+')[0] : null;

  if (!Array.isArray(ignore)) {
    ignore = [ignore];
  }

  return !!(
    ignore.includes(tag) ||
    ignore.includes(type) ||
    ignore.includes(format) ||
    ignore.includes(formatAlt)
  );
}
function isIgnored ( ignore , tag , type , format ) { // Clean svg+xml ==> svg const formatAlt = format && format . indexOf ( '+' ) ? format . split ( '+' ) [ 0 ] : null ; if ( ! Array . isArray ( ignore ) ) { ignore = [ ignore ] ; } return ! ! ( ignore . includes ( tag ) || ignore . includes ( type ) || ignore . includes ( format ) || ignore . includes ( formatAlt ) ) ; }
Retrieve ignored state for 'tag' or 'type' or 'format'
@param {String | Array} ignore
@param {String} tag
@param {String} type
@param {String} format
@returns {Boolean}
Retrieve ignored state for tag or type or format