I didn't know that
summary
Ten concrete JavaScript gotchas and fixes: how JSON.stringify replacer can strip functions or sensitive keys, using localeCompare and String.prototype.normalize for Unicode-safe comparisons, the second argument to Array.from as a map thisArg, why Number.isNaN differs from global isNaN, Array.includes finds NaN where indexOf fails, function.length breaks with rest/default parameters, the regex dotAll flag fixes matching newlines, non‑capturing groups avoid useless match array items, and finally blocks override earlier returns.
AI-written summary · about
chapters (8)
- 0:00Start
- 1:02Private Website
- 1:40Jason Stringify
- 2:14String Comparison
- 2:37Local Compare
- 4:33Is Not a Number
- 6:23Function Parameters
- 8:00Regular Expression








