Thomas Burette
I was curious what the "React Router v7 ↗" option in the create-vite CLIis. It turns out that it does a : npm create react-router@latest. In clear : it does not create a vite project but a react-router (Remix) project instead. I think it's so nice of @vite.dev to redirect to a competing project.
I discovered Object.groupBy(). But why is it attached to Object and not Array. @philna.sh's blog (philna.sh/blog/2023/09...) pointed me to part of the answer. Creating anArray.groupBy() would break sites using various libraries that monkey-patch Array.prototype.groupBy But why not Array.groupBy() ?
After all it takes an Array as input. Re-reading the doc, it's clear why it is attached on Object. It works not just on arrays but on any iterable (developer.mozilla.org/en-US/docs/W...) My second question is, why does it return a (null prototype) object acting as a map instead of map?
Turns out there is a Map.groupBy() that returns a Map (developer.mozilla.org/en-US/docs/W...). I really love Map, I wish it where used when mapping things instead of having plain objects everywhere.
I'm looking at WebRTC. MDN talks about differences in WebRTC behavior between browsers and suggests using the webrtc-adapter library to smooth over the differences. Does anybody know what the differences are? developer.mozilla.org/en-US/docs/W...
You are up to date.