Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upNo correct way to create an empty Array. #789
Comments
This comment has been minimized.
This comment has been minimized.
|
Okay, so for my case |
This comment has been minimized.
This comment has been minimized.
|
How about alternatively, I think that the following is allowed: ;[].slice.call(this.querySelectorAll(…)) |
This comment has been minimized.
This comment has been minimized.
|
Hey @LinusU, Your other suggestions works well. I will however stick top Maybe it would be a nice idea to mention the |
This comment has been minimized.
This comment has been minimized.
feross
closed this
Feb 20, 2017
This comment has been minimized.
This comment has been minimized.
|
@LinusU okay, I did not read this as "start with a semicolon" |
This comment has been minimized.
This comment has been minimized.
|
Hehe, yeah that was actually why I didn't close it, maybe this could benefit from some clarification... On the other hand, it's not something that is that common... |
This comment has been minimized.
This comment has been minimized.
|
@LinusU I think using |

lukasoppermann commentedFeb 20, 2017
Hey, so I have the following issue:
Gives me an error:
However, if I change it to:
It works, but I get this error:
I feel like one notation should be allowed.