isRangeContextMediaFeature.js 359 B

1234567891011
  1. 'use strict';
  2. /**
  3. * Check whether a media feature is a range context one
  4. *
  5. * @param {string} mediaFeature feature
  6. * @return {boolean} If `true`, media feature is a range context one
  7. */
  8. module.exports = function isRangeContextMediaFeature(mediaFeature) {
  9. return mediaFeature.includes('=') || mediaFeature.includes('<') || mediaFeature.includes('>');
  10. };