1 Matching Annotations
  1. 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.