webhook/node_modules/table/dist/stringifyTableData.js.flow
Joel Male 1ada95e04a
v2.0.0 (#12)
- Convert project to Javascript/Typescript
- Allow custom headers to be passed in (optional)
- Allow body to be optional
2020-08-26 10:52:47 +10:00

11 lines
201 B
Text

/**
* Casts all cell values to a string.
*
* @param {table~row[]} rows
* @returns {table~row[]}
*/
export default (rows) => {
return rows.map((cells) => {
return cells.map(String);
});
};