getCurrentRange = (name, width = window.innerWidth) => {
    let rangeSet = mediaRanges.get(name);
    if (!rangeSet) {
      rangeSet = mediaRanges.get(RANGESETS.RANGE_4STEPS);
    }
    let currentRangeName;
    const effectiveWidth = Math.floor(width);
    rangeSet.forEach((value, key) => {
      if (effectiveWidth >= value[0] && effectiveWidth <= value[1]) {
        currentRangeName = key;
      }
    });
    return currentRangeName || [...rangeSet.keys()][0];
  }
Returns information about the current active range of the range set with the given name.

If the optional parameter <code>width</code> is given, the active range will be determined for that width,
otherwise it is determined for the current window size.

@param {string} name The name of the range set. The range set must be initialized beforehand ({@link MediaRange.initRangeSet})
@param {number} [width] An optional width, based on which the range should be determined;
If <code>width</code> is not provided, the window size will be used.
@returns {string} The name of the current active interval of the range set.

@name MediaRange.getCurrentRange
@function
@public