index.js
function(property) {
			if (!property) {
				return true
			}
			var div = document.createElement("div")
			var vendorPrefixes = ["khtml", "ms", "o", "moz", "webkit"]
			var count = vendorPrefixes.length

			// Note: HTMLElement.style.hasOwnProperty seems broken in Edge
			if (property in div.style) {
				return true
			}

			property = property.replace(/^[a-z]/, function(val) {
				return val.toUpperCase()
			})

			while (count--) {
				var prefixedProperty = vendorPrefixes[count] + property
				// See comment re: HTMLElement.style.hasOwnProperty above
				if (prefixedProperty in div.style) {
					return true
				}
			}
			return false
		}
function(property) {
			if (!property) {
				return true
			}
			var div = document.createElement("div")
			var vendorPrefixes = ["khtml", "ms", "o", "moz", "webkit"]
			var count = vendorPrefixes.length

			// Note: HTMLElement.style.hasOwnProperty seems broken in Edge
			if (property in div.style) {
				return true
			}

			property = property.replace(/^[a-z]/, function(val) {
				return val.toUpperCase()
			})

			while (count--) {
				var prefixedProperty = vendorPrefixes[count] + property
				// See comment re: HTMLElement.style.hasOwnProperty above
				if (prefixedProperty in div.style) {
					return true
				}
			}
			return false
		}
function ( property ) { if ( ! property ) { return true } var div = document . createElement ( "div" ) var vendorPrefixes = [ "khtml" , "ms" , "o" , "moz" , "webkit" ] var count = vendorPrefixes . length // Note: HTMLElement.style.hasOwnProperty seems broken in Edge if ( property in div . style ) { return true } property = property . replace ( / ^[a-z] / , function ( val ) { return val . toUpperCase ( ) } ) while ( count -- ) { var prefixedProperty = vendorPrefixes [ count ] + property // See comment re: HTMLElement.style.hasOwnProperty above if ( prefixedProperty in div . style ) { return true } } return false }
Returns true if a browser supports a css3 property
Returns true if a browser supports a css3 property