.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / table / dist / stringifyTableData.js.flow
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/dist/stringifyTableData.js.flow b/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/dist/stringifyTableData.js.flow
new file mode 100644 (file)
index 0000000..a4dffac
--- /dev/null
@@ -0,0 +1,11 @@
+/**
+ * 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);
+  });
+};