15 lines
366 B
JavaScript
15 lines
366 B
JavaScript
![]() |
'use strict';
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.default = camelCaseProperty;
|
||
|
var dashRegex = /-([a-z])/g;
|
||
|
var msRegex = /^Ms/g;
|
||
|
|
||
|
function camelCaseProperty(property) {
|
||
|
return property.replace(dashRegex, function (match) {
|
||
|
return match[1].toUpperCase();
|
||
|
}).replace(msRegex, 'ms');
|
||
|
}
|
||
|
module.exports = exports['default'];
|