mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 06:25:51 +03:00
7 lines
157 B
JavaScript
7 lines
157 B
JavaScript
|
import {helper} from '@ember/component/helper';
|
||
|
|
||
|
export function firstName([name = '']) {
|
||
|
return name.split(' ')[0];
|
||
|
}
|
||
|
|
||
|
export default helper(firstName);
|