concept array.of in category javascript

appears as: Array.of
Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond

This is an excerpt from Manning's book Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond.

  • Know how to construct arrays with Array.of
  • The arrays created with Array.of are the same except for array c, which more intuitively this time contains the single value 1. At this point, you may be thinking, why not just use an array literal? For example: