code: function (stylesheet) {
  		var sheetMedia = stylesheet.media && stylesheet.media.mediaText;
  		var sheetHost;
  
  		// if this sheet is cross-origin and option is set skip it
  		if (objectFit.disableCrossDomain == 'true') {
  			sheetHost = getCSSHost(stylesheet.href);
  
  			if ((sheetHost !== window.location.host)) {
  				return [];
  			}
  		}
  
  
  		// if this sheet is disabled skip it
  		if (stylesheet.disabled) {
  			return [];
  		}
  
  		if (!window.matchMedia) {
  			if (sheetMedia && sheetMedia.length) {
  				return [];
  			}
  		}
  		// if this sheet's media is specified and doesn't match the viewport then skip it
  		else if (sheetMedia && sheetMedia.length && ! window.matchMedia(sheetMedia).matches) {
  			return [];
  		}
  
  		// get the style rules of this sheet
  		return toArray(stylesheet.cssRules);
  	}
docs: handles extraction of `cssRules` as an `Array` from a stylesheet or something that behaves the same