Skip to content

Instantly share code, notes, and snippets.

@haru01
Last active April 4, 2019 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haru01/b50654ba10782aa601ac314282dc7a4b to your computer and use it in GitHub Desktop.
Save haru01/b50654ba10782aa601ac314282dc7a4b to your computer and use it in GitHub Desktop.
@@ -5,11 +5,12 @@ function generateReadReport(readList, recommendList) {
function createReportData(readList, recommendList) {
const reportData = {};
+ reportData.userName = readList.name;
return reportData;
}
function renderPlainText(reportData, readList, recommendList) {
- let report = `name: ${readList.name}\n`;
+ let report = `name: ${reportData.userName}\n`;
report += '-----\n';
for (let book of readList.books) {
if (book.times >= 1) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment