mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
13 lines
285 B
JavaScript
13 lines
285 B
JavaScript
|
import {helper} from '@ember/component/helper';
|
||
|
import {isEmpty} from '@ember/utils';
|
||
|
|
||
|
export function authorNames([authors]/*, hash*/) {
|
||
|
if (!authors || isEmpty(authors)) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
return authors.mapBy('name').join(', ');
|
||
|
}
|
||
|
|
||
|
export default helper(authorNames);
|