You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
366 B

  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = camelCaseProperty;
  6. var dashRegex = /-([a-z])/g;
  7. var msRegex = /^Ms/g;
  8. function camelCaseProperty(property) {
  9. return property.replace(dashRegex, function (match) {
  10. return match[1].toUpperCase();
  11. }).replace(msRegex, 'ms');
  12. }
  13. module.exports = exports['default'];