Skip to content

Christopher d'Arcy Eval 2#231

Open
cmdarcy wants to merge 16 commits intoprojectshft:masterfrom
cmdarcy:master
Open

Christopher d'Arcy Eval 2#231
cmdarcy wants to merge 16 commits intoprojectshft:masterfrom
cmdarcy:master

Conversation

@cmdarcy
Copy link

@cmdarcy cmdarcy commented Feb 10, 2025

No description provided.

// Add click handler for post deletion
removePostbtn.addEventListener("click", function (e) {
postsContainer.removeChild(e.target.parentNode.parentNode);
posts.splice(posts.indexOf(post), 1);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is mutating the array, better to use filter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments