function capitalize ( name ) { return name . charAt ( 0 ) . toUpperCase ( ) + name . slice ( 1 ) ; } export function prefixPropName ( name , prefix = null ) { return prefix ? `${ prefix }${ capitalize ( name ) }` : name ; } export function sanitizePropName ( name ) { return name . replace ( /\s/ , "" ) ; }