diff options
| author | Leo Goetz <dev@leogtz.de> | 2025-11-09 14:19:26 +0100 |
|---|---|---|
| committer | Leo Goetz <dev@leogtz.de> | 2025-11-09 14:19:26 +0100 |
| commit | 789d28b83af165258dc7e8b3a44bbd2d48fcc370 (patch) | |
| tree | e98ef728fb42a7bc03aef6d6a601e0533a4961b3 /src/utils.js | |
| parent | 16a0e9a9d2c24af28142ed3420ef6cb373c454f7 (diff) | |
added crud functionality with json file as a db
Diffstat (limited to 'src/utils.js')
| -rw-r--r-- | src/utils.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils.js b/src/utils.js new file mode 100644 index 0000000..4153ada --- /dev/null +++ b/src/utils.js @@ -0,0 +1,8 @@ +export const listNotes = (notes) => { + notes.forEach(({ id, content, tags }) => { + console.log("id: ", id); + console.log("tags: ", tags); + console.log("content: ", content); + console.log("\n"); + }); +}; |
