packages/hexo-cli-extras/lib/edit.js
// filter out all non-published posts
filter out all non-published posts
filter out all non - published posts
function filterDrafts(posts) {
        return posts.filter(function filterPosts(post) {
          return !post.published;
        });
      }
function filterDrafts ( posts ) { return posts . filter ( function filterPosts ( post ) { return ! post . published ; } ) ; }
filter out all non-published posts
filter out all non - published posts