lib/assets/caniuse.js
function(property) {
			if (!prefs.get('caniuse.enabled') || !cssDB || !(property in cssDB)) {
				return null;
			}

			var prefixes = [];
			var propStats = cssDB[property];
			var versions = getVersionSlice();

			getVendorsList().forEach(function(vendor) {
				var vendorVesions = vendorsDB[vendor].versions.slice(versions);
				for (var i = 0, v; i < vendorVesions.length; i++) {
					v = vendorVesions[i];
					if (!v) {
						continue;
					}

					if (~propStats[vendor][v].indexOf('x')) {
						prefixes.push(vendorsDB[vendor].prefix);
						break;
					}
				}
			});

			return utils.unique(prefixes).sort(function(a, b) {
				return b.length - a.length;
			});
		}
function(property) {
			if (!prefs.get('caniuse.enabled') || !cssDB || !(property in cssDB)) {
				return null;
			}

			var prefixes = [];
			var propStats = cssDB[property];
			var versions = getVersionSlice();

			getVendorsList().forEach(function(vendor) {
				var vendorVesions = vendorsDB[vendor].versions.slice(versions);
				for (var i = 0, v; i < vendorVesions.length; i++) {
					v = vendorVesions[i];
					if (!v) {
						continue;
					}

					if (~propStats[vendor][v].indexOf('x')) {
						prefixes.push(vendorsDB[vendor].prefix);
						break;
					}
				}
			});

			return utils.unique(prefixes).sort(function(a, b) {
				return b.length - a.length;
			});
		}
function ( property ) { if ( ! prefs . get ( 'caniuse.enabled' ) || ! cssDB || ! ( property in cssDB ) ) { return null ; } var prefixes = [ ] ; var propStats = cssDB [ property ] ; var versions = getVersionSlice ( ) ; getVendorsList ( ) . forEach ( function ( vendor ) { var vendorVesions = vendorsDB [ vendor ] . versions . slice ( versions ) ; for ( var i = 0 , v ; i < vendorVesions . length ; i ++ ) { v = vendorVesions [ i ] ; if ( ! v ) { continue ; } if ( ~ propStats [ vendor ] [ v ] . indexOf ( 'x' ) ) { prefixes . push ( vendorsDB [ vendor ] . prefix ) ; break ; } } } ) ; return utils . unique ( prefixes ) . sort ( function ( a , b ) { return b . length - a . length ; } ) ; }
Resolves prefixes for given property
@param {String} property A property to resolve. It can start with `@` symbol
(CSS section, like `@keyframes`) or `:` (CSS value, like `flex`)
@return {Array} Array of resolved prefixes or <code>null</code>
if prefixes can't be resolved. Empty array means property has no vendor
prefixes
Resolves prefixes for given property