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 …
Javascript
How to Use Bootstrap JavaScript Components Inside of Shadow DOM Web Components
Despite doing this front-end thing for over a decade, I still encounter new problems thanks to the ever-evolving web specifications. One of …
Thoughts on Bun
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, …
Deno Raises $21M – but is anyone using it yet?
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 …
How to Sort an Array of Object Values Alphabetically and Numerically
While sorting an array of objects recently, I needed to sort by an identifier prefixed with two letters and ended with numbers. An example …
How to Remove Duplicate Items From an Array in JavaScript (the Easy Way)
Languages such as PHP have methods for de-duplicating arrays, but Javascript strangely does not. In PHP, you can write. array_uniqueAnd this …
How to Work With DATETIME Values in JavaScript
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 …
How to Add Infinite Scrolling to a HTML Element With Vanilla JavaScript
There is a Javascript library for almost anything. But sometimes, it's good to code your solutions to specific problems where the resulting …
How to Add Typings to the Global TypeScript Window Object
Does this error look familiar? Property 'AddressFinder' does not exist on type 'Window & typeof globalThis'.ts(2339) There will come …