decentralization is when you fuck up the CSS so its not properly centered
decentralization is when you fuck up the CSS so its not properly centered
Very impressive!! Well done. Works great on mobile too
Dark-themed code snippet showing URLPattern examples on MDN: two JavaScript blocks matching "/books" and "/books/:id" with console.log outputs.
🆕 The URL Pattern API is Newly Available!
Use it to match and extract parts of URLs, no need to reinvent routing logic. Supports literals, wildcards, named groups, and even regex constraints.
Learn how it works 👇
developer.mozilla.org/en-US/docs/...
It sure takes some time to get used to those methods 😭 Reminds me of a tweet I posted years ago about some weird behavior with Array.prototype.at()
Be careful when you use `Array.prototype.at()` as it converts whatever you pass into a number and even NaN works surprisingly.