function createComparisonFilter(parsedThreshold, gzipThreshold) {
  return comparisonEntry => {
    const [, snapshot] = comparisonEntry;
    return (
      Math.abs(snapshot.parsed.absoluteDiff) >= parsedThreshold ||
      Math.abs(snapshot.gzip.absoluteDiff) >= gzipThreshold
    );
  };
}
function createComparisonFilter(parsedThreshold, gzipThreshold) {
  return comparisonEntry => {
    const [, snapshot] = comparisonEntry;
    return (
      Math.abs(snapshot.parsed.absoluteDiff) >= parsedThreshold ||
      Math.abs(snapshot.gzip.absoluteDiff) >= gzipThreshold
    );
  };
}
function createComparisonFilter ( parsedThreshold , gzipThreshold ) { return comparisonEntry => { const [ , snapshot ] = comparisonEntry ; return ( Math . abs ( snapshot . parsed . absoluteDiff ) >= parsedThreshold || Math . abs ( snapshot . gzip . absoluteDiff ) >= gzipThreshold ) ; } ; }
creates a callback for Object.entries(comparison).filter that excludes every
entry that does not exceed the given threshold values for parsed and gzip size

@param {number} parsedThreshold
@param {number} gzipThreshold
creates a callback for Object . entries ( comparison ) . filter that excludes every entry that does not exceed the given threshold values for parsed and gzip size
Creates a filter function that checks if a file is compressed or not.