import { ICaseStyleConverter } from "./CaseStyleConverter" ; /**
 * Converts a series of words to camelCase.
 */ export class CamelCaseConverter implements ICaseStyleConverter { param words returns public convert ( words ) { if ( words . length === 0 ) { return "" ; } let result = "" ; for ( const word of words ) { result += this . toCamelCase ( word ) ; } return result [ 0 ] . toLowerCase ( ) + result . substring ( 1 ) ; } param word returns public toCamelCase ( word ) { return word [ 0 ] . toUpperCase ( ) + word . substring ( 1 ) . toLowerCase ( ) ; } }