marco/app/helpers/capitalize.js
Râu Cao da3b5f2dd8
Move place details to dedicated component
With more place infos and formatting
2026-01-21 14:53:58 +07:00

9 lines
220 B
JavaScript

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);