function hasFeatures(features) {
  if (!window.Modernizr) return true;
  return [...features].every((feature) => {
    const hasFeature = window.Modernizr[feature];
    if (!hasFeature && process.env.DEBUG) console.warn(`Feature '${feature}' missing!`);
    return hasFeature;
  });
}
// Takes an array of Modernizr feature tests and makes sure they all pass.
Takes an array of Modernizr feature tests and makes sure they all pass.
Takes an array of Modernizr feature tests and makes sure they all pass .
function hasFeatures(features) {
  if (!window.Modernizr) return true;
  return [...features].every((feature) => {
    const hasFeature = window.Modernizr[feature];
    if (!hasFeature && process.env.DEBUG) console.warn(`Feature '${feature}' missing!`);
    return hasFeature;
  });
}
function hasFeatures ( features ) { if ( ! window . Modernizr ) return true ; return [ ... features ] . every ( ( feature ) => { const hasFeature = window . Modernizr [ feature ] ; if ( ! hasFeature && process . env . DEBUG ) console . warn ( ` ${ feature } ` ) ; return hasFeature ; } ) ; }
Takes an array of Modernizr feature tests and makes sure they all pass.
Takes an array of Modernizr feature tests and makes sure they all pass .