Just use JSON.parse('["item1", "item2", "item3"]');
More Related Contents:
- How to send data to the server via Ajax?
- Javascript date object confusion
- How to find certain text in HTML
- What’s the meaning of “=>” (an arrow formed from equals & greater than) in JavaScript?
- Google Maps JS API v3 – Simple Multiple Marker Example
- Merge two array of objects based on a key
- How to check file input size with jQuery?
- Angular 2 Sibling Component Communication
- Why does setTimeout() “break” for large millisecond delay values?
- What’s the best way to break from nested loops in JavaScript?
- Javascript Drag and drop for touch devices [closed]
- How to print a stack trace in Node.js?
- Why is Proxy to a Map object in ES2015 not working
- What’s the API Key for in Google Maps API V3?
- Can someone explain this ‘double negative’ trick? [duplicate]
- Getting the current GMT world time
- How to make chainable function in JavaScript?
- Truncate a string straight JavaScript
- Assignment with double ampersand “&&” [duplicate]
- Load HTML page dynamically into div with jQuery
- VueJS How can I use computed property with v-for
- Using JQuery plugins that transform the DOM in React Components?
- The data-toggle attributes in Twitter Bootstrap
- How to trigger javascript on print event?
- Setting one object equal to another object with the assignment operator in Javascript
- group array and get count [duplicate]
- Chrome extension identity.email empty
- Dynamically changing navigation links (next and previous) in WordPress via AJAX
- Group and count values in an array
- Display Spreadsheet Data to HTML Table