:
Log in
Sign up
1
Matching Annotations
Aug 2019
stackoverflow.com
stackoverflow.com
How to check if an array exist, if not create it, in JavaScript?
1
TylerRick
29 Aug 2019
in
Public
const list = [].concat(x);
convert to array if not already
javascript
Visit annotations in context
Tags
convert to array if not already
javascript
Annotators
TylerRick
URL
stackoverflow.com/questions/1961528/how-to-check-if-an-array-exist-if-not-create-it-in-javascript
Collapse view
Share:
Group.
Only group members will be able to view this annotation.
Only me.
No one else will be able to view this annotation.