css-in-js-utils
Version:
Useful utility functions for CSS in JS solutions
12 lines (10 loc) • 335 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = unprefixProperty;
var RE = /^(ms|Webkit|Moz|O)/;
function unprefixProperty(property) {
var propertyWithoutPrefix = property.replace(RE, '');
return propertyWithoutPrefix.charAt(0).toLowerCase() + propertyWithoutPrefix.slice(1);
}
;