utils/cssPropertySupported.js

/**
 * Checks to see if CSS property is supported
 *
 * @module cssPropertySupported
 * @return {boolean} - true if the css property is supported by the browser
 */
const cssPropertySupported = ( prop ) => {
	if ( 'undefined' !== typeof ( document.body.style[prop]) ) {
		return true;
	}
	return false;
};

export default cssPropertySupported;