Created
June 20, 2024 14:40
-
-
Save PaulieScanlon/ab42b3870083974b56c5273fab273ab3 to your computer and use it in GitHub Desktop.
Report markdown string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/index.js#L42 | |
const report = response.rows | |
.map((row, index) => { | |
const { dimensionValues, metricValues } = row; | |
return `${index + 1}. <https://${dimensionValues[0].value}|${dimensionValues[1].value}> | *x${ | |
metricValues[0].value | |
}*`; | |
}) | |
.join('\\n') | |
.replace(/\\n/g, '\n'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment