This commit is contained in:
2020-03-19 08:07:47 +05:30
commit ec4502e3c1
10 changed files with 1273 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
//@ts-check
/**
* @param {Array<{parts: number;count: number;person: String;}>} data
*/
module.exports = (data) => {
let writable = "Name | Count | Parts\n --- | --- | ---\n"
data.forEach(element => {
writable += `${element.person} | ${element.count} | ${element.parts}\n`
});
require('fs').writeFileSync("output.md", writable)
}