Jordan Brennanjordanbrennan.hashnode.dev·Nov 21, 2023Update current URL's query params non-destructivelyCouldn't find a modern vanilla example of how to update the current URL's query params non-destructively, so I wrote this for future reference: // Get current URL const url = new URL(window.location.href); // Update or remove a param colors.length ...33 readsJavaScriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.