Allen Wirfs-Brock (2013-12-18T20:37:04.000Z)
On Dec 18, 2013, at 11:01 AM, Shijun He wrote:

> ...
> 
> 2)
> In fact such expressive is MEANINGLESS because we will never write `var a = Array.of(1, 2, 3)` instead of `var a = [1, 2, 3]`
> 

Note that  'of' works to create instances of subclasses or Array (and typed arrays) while array literals do not.

class MyArray extends Array { }

var ma = MyArray.of(1,2,3);

console.log(ma instanceof MyArray);  //true

allen
domenic at domenicdenicola.com (2014-01-03T16:50:16.986Z)
On Dec 18, 2013, at 11:01 AM, Shijun He wrote:

> 2\. In fact such expressive is MEANINGLESS because we will never write `var a = Array.of(1, 2, 3)` instead of `var a = [1, 2, 3]`

Note that  'of' works to create instances of subclasses or Array (and typed arrays) while array literals do not.

```js
class MyArray extends Array { }

var ma = MyArray.of(1,2,3);

console.log(ma instanceof MyArray);  //true
```