6 lines
208 B
JavaScript
6 lines
208 B
JavaScript
|
import {helper} from '@ember/component/helper';
|
||
|
|
||
|
export default helper(function postAuthorNames([post]/*, hash*/) {
|
||
|
return (post?.authors || []).map(author => author.name || author.email).join(', ');
|
||
|
});
|