|
123456789101112131415161718192021 |
- 'use strict';
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports['default'] = camelize;
- var regExp = /[-\s]+(.)?/g;
-
- /**
- * Convert dash separated strings to camel cased.
- *
- * @param {String} str
- * @return {String}
- */
- function camelize(str) {
- return str.replace(regExp, toUpper);
- }
-
- function toUpper(match, c) {
- return c ? c.toUpperCase() : '';
- }
|