lib/modifiers/summary/editPartTitle.js
function editPartTitle(summary, index, newTitle) {
    var parts = summary.getParts();

    var part = parts.get(index);
    if (!part) {
        return summary;
    }

    part = part.set('title', newTitle);
    parts = parts.set(index, part);

    return summary.set('parts', parts);
}
function editPartTitle(summary, index, newTitle) {
    var parts = summary.getParts();

    var part = parts.get(index);
    if (!part) {
        return summary;
    }

    part = part.set('title', newTitle);
    parts = parts.set(index, part);

    return summary.set('parts', parts);
}
function editPartTitle ( summary , index , newTitle ) { var parts = summary . getParts ( ) ; var part = parts . get ( index ) ; if ( ! part ) { return summary ; } part = part . set ( 'title' , newTitle ) ; parts = parts . set ( index , part ) ; return summary . set ( 'parts' , parts ) ; }
Edit title of a part in the summary

@param {Summary} summary
@param {Number} index
@param {String} newTitle
@return {Summary}
Edit title of a part in the summary