code: function filterTag(posts) {
        var reTag = new RegExp(tag);
        return posts.filter(function filterPosts(post) {
          return post.tags.data.some(function checkRe(postTag) {
            return reTag.test(postTag.name);
          });
        });
      }
docs: filter the posts using a tag if supplied