Rant about Javascript (Typescript)
This is impressively dumb, I hate this language:let m= new Map();
m.set({foo:2}, 23)
// Map { {…} → 23 }
m.set({foo:2}, 42)
// Map { {…} → 23, {…} → 42 }Yes, I understand why it is happening, that doesn’t change that it is fucking stupid!
How do I do this properly?
#javascript #typescript #webdev