node_modules/eslint-plugin-compat/lib/providers/CanIUseProvider.js
/*
 * Check the CanIUse database to see if targets are supported
 */
Check the CanIUse database to see if targets are supported
Check the CanIUse database to see if targets are supported
function canIUseSupported(stats, {
  version,
  target,
  parsedVersion
}) {
  const targetStats = stats[target];
  return versionIsRange(version) ? Object.keys(targetStats).some(statsVersion => versionIsRange(statsVersion) && compareRanges(parsedVersion, statsVersion) ? !targetStats[statsVersion].includes('y') : false) : targetStats[version] && !targetStats[version].includes('y');
}
function canIUseSupported ( stats , { version , target , parsedVersion } ) { const targetStats = stats [ target ] ; return versionIsRange ( version ) ? Object . keys ( targetStats ) . some ( statsVersion => versionIsRange ( statsVersion ) && compareRanges ( parsedVersion , statsVersion ) ? ! targetStats [ statsVersion ] . includes ( 'y' ) : false ) : targetStats [ version ] && ! targetStats [ version ] . includes ( 'y' ) ; }
Check the CanIUse database to see if targets are supported
Check the CanIUse database to see if targets are supported