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