domenic at domenicdenicola.com (2014-03-06T20:52:00.325Z)
Here is one case where literal array syntax is not possible:
class ImprovedArray extends Array { ... }
let a = ImprovedArray.of( ... )
Here is one case where literal array syntax is not possible:
class ImprovedArray extends Array { ... }
let a = ImprovedArray.of( ... )
Le 3 mars 2014 à 04:22, Mark Volkmann <r.mark.volkmann at gmail.com> a écrit : > What is an example of a use case where one would choose to use Array.of instead of the literal array syntax? > Here is one case where literal array syntax is not possible: class ImprovedArray extends Array { ... } let a = ImprovedArray.of( ... ) —Claude