Re: [jslint] "Use the array literal notation ."
- One possible pitfall is if by any chance you pass something that is not an
integer to the Array constructor
new Array(3) is like [undefined, undefined, undefined]
new Array(test¹) is like [test¹]
new Array(3.14) is a RangeError
>> > I'm not exactly sure why using the Array constructor would be bad,[Non-text portions of this message have been removed]
> except possibly because someone else might have redefined it. So in
> that case should I be writing this?