In a recent project, I worked with Markdown files that contained metadata at the top for blog posts. I needed to parse the Markdown with JavaScript and make a …
Posts in Javascript
There are many different ways to solve this use case. You want to wait for an element to exist on the page and run a callback function when it does. It seems …
At work, I’ve been migrating us over from Cypress to Playwright for end-to-end tests. In that time, we’ve enabled two-factor authentication …
Despite doing this front-end thing for over a decade, I still encounter new problems thanks to the ever-evolving web specifications. One of the newer …
Say what you will, but since its introduction in 2009, Node.js has been the undisputed king of server-side Javascript. Created by Ryan Dahl, Node.js had …
After raising a $4,900,000 seed investment back in March 2021, Deno has just announced quite a substantial round of Series A investment of $21 million. The …
While sorting an array of objects recently, I needed to sort by an identifier prefixed with two letters and ended with numbers. An example is …
Languages such as PHP have methods for de-duplicating arrays, but Javascript strangely does not. In PHP, you can write. array_uniqueAnd this function will …
Dates in Javascript have always been a PITA. It is one of the reasons that libraries like MomentJS reigned supreme for so long. Things are complicated, …
There is a Javascript library for almost anything. But sometimes, it’s good to code your solutions to specific problems where the resulting code will be …