src/plugins/addPlugin.js
/**
 * camelFromKebab cases returns a camel case formatted string
 * from a kebab case string
 * @param {string} kebabString
 * @return {string}
 */
camelFromKebab cases returns a camel case formatted string
from a kebab case string
@param {string} kebabString
@return {string}
camelFromKebab cases returns a camel case formatted string from a kebab case string @param { string } kebabString @return { string }
function camelFromKebab(kebabString) {
  const words = kebabString.split("-");
  const minLength = 2;
  if (words.length < minLength) {
    return kebabString;
  }
  const camelWords = words.map((v, i) => {
    let result = v[0].toUpperCase();
    if (i === 0) {
      result = v[0].toLowerCase();
    }
    return result + v.slice(1);
  });
  return camelWords.join("");
}
function camelFromKebab ( kebabString ) { const words = kebabString . split ( "-" ) ; const minLength = 2 ; if ( words . length < minLength ) { return kebabString ; } const camelWords = words . map ( ( v , i ) => { let result = v [ 0 ] . toUpperCase ( ) ; if ( i === 0 ) { result = v [ 0 ] . toLowerCase ( ) ; } return result + v . slice ( 1 ) ; } ) ; return camelWords . join ( "" ) ; }
camelFromKebab cases returns a camel case formatted string
 from a kebab case string
 @param {string} kebabString
 @return {string}
camelFromKebab cases returns a camel case formatted string from a kebab case string @param { string } kebabString @return { string }