TryGhost/Ghost

View on GitHub
ghost/admin/app/helpers/post-author-names.js

Summary

Maintainability
A
0 mins
Test Coverage
import {helper} from '@ember/component/helper';

export default helper(function postAuthorNames([post]/*, hash*/) {
    return (post?.authors || []).map(author => author.name || author.email).join(', ');
});