mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +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);
|