mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 22:01:49 +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);
|