function prettyCatalog(fileName) { if (isChinese(fileName) || isNonAscii(fileName)) { return fileName; } return startCase(fileName); }
const ProfilePage = ({ user }) => { if (!user) return 'Loading...'; return ( <dl> {Object.keys(user).sort().map(key => ( <Fragment key={key}> <dt>{startCase(key)}</dt> <dd>{key === 'updated_at' ? new Date(user[key] * 1000).toString() : user[key]}</dd> </Fragment> ))} </dl> ); }
mutation ${startCase(action)}Alias( ${id ? '$id: String!' : ''} $data: AliasData!
<div className={styles.headerContainer}> <i className={`fa ${get(this.props.header, 'icon')}`} /> {startCase(get(this.props.header, 'name'))} <span style={{ fontStyle: 'italic', fontWeight: '500' }}> {get(this.props.header, 'source') ? `(${get(this.props.header, 'source')})` : ''}
<i className={`fa ${this.props.rowItem.icon}`} /> <span style={{ width: spanStyle }}> {startCase(this.props.rowItem.name)} {pluginSource} </span> {temporary}
(res, val, key) => { const obj = {} const graph = startCase(key.substr(key.lastIndexOf('$') + 1)).replace(/\s/g, '')
(res, val, key) => { const obj = {} const graph = startCase(key.substr(key.lastIndexOf('$') + 1)).replace(/\s/g, '')