💾 Archived View for republic.circumlunar.space › users › andybalaam › blogmirror › 2012-03-30_javasc… captured on 2022-06-03 at 23:22:59. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-04)

-=-=-=-=-=-=-

JavaScript WTFs

I recently did a presentation at work on "surprising" things you may encounter in JavaScript. I present it here for your delectation:

JavaScript WTFs

JavaScript WTFs

Sorting arrays was the one that wasted me the most time. Arrays in JavaScript are a neat hack on top of objects. Given that, presumably, all modern implementations have a separate type for an array as opposed to an object, you would hope that at some point they would grow up into something really different in the language.

Originally posted at 2012-03-30 12:41:58+00:00. Automatically generated from the original post : apologies for the errors introduced.

original post