1
0
This commit is contained in:
Jason Williams 2019-08-19 15:53:18 -06:00
parent c61dd1e421
commit fe88e6f92f
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,8 @@ const addNote = (title, body) => {
const notes = loadNotes(); const notes = loadNotes();
const duplicateNote = notes.find((note) => note.title === title); const duplicateNote = notes.find((note) => note.title === title);
debugger;
if (!duplicateNote) { if (!duplicateNote) {
notes.push({ notes.push({
title: title, title: title,

View File

@ -1 +1 @@
[{"title":"List","body":"Sweater, Pants"},{"title":"Course Ideas","body":""}] [{"title":"List","body":"Sweater, Pants"},{"title":"Course Ideas","body":""},{"title":"Courses","body":"Node.js"}]