I found this post : https://romgrk.com/posts/optimizing-javascript/
Which lists a bunch of interesting optimisations for javascripters in 2024. The best thing is it includes benchmarks for each!
"Avoid different shapes" is included and the performance hit is large ("Percentage results represent the number of operations completed within 1s, divided by the number of operations of the highest scoring case. Higher is better.")
It also suggests
and
"Avoid map filter reduce"
I think this is my new favorite page on the internet and I will be optimising all my javascript code in future, mainly to troll front end devs :)