Move place details to dedicated component
With more place infos and formatting
This commit is contained in:
8
app/helpers/capitalize.js
Normal file
8
app/helpers/capitalize.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import { helper } from '@ember/component/helper';
|
||||
|
||||
export function capitalize([str]) {
|
||||
if (typeof str !== 'string') return '';
|
||||
return str.charAt(0).toUpperCase() + str.slice(1);
|
||||
}
|
||||
|
||||
export default helper(capitalize);
|
||||
Reference in New Issue
Block a user