2 Matching Annotations
  1. Jul 2022
    1. I have rarely encountered a good reason to use == in JS. Most of the time, or you are relying on it, you are probably doing something wrong.
  2. Jul 2021
    1. The array prototype is syntax sugar. You can make your own Array type in pure JavaScript by leveraging objects.

      At the risk of saying something that might not now be correct due to recent changes in the language spec, this has historically not been true; Array objects are more than syntax sugar, with the spec carving out special exceptions for arrays' [[PutValue]] operation.