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