Just use indexer
var valueAtIndex1 = myValues[1];
Update from Chrome 92 (released on: July 2021)
You can use at
method from Array.prototype
as follows:
var valueAtIndex1 = myValues.at(1);
See more details at MDN documentation.
More Related Contents:
- How to block "adblock"
- expected ‘;’ and instead saw ‘=’ [closed]
- How to read each element of an array in jQuery? [closed]
- How to get a subset of a javascript object’s properties
- Show/hide ‘div’ using JavaScript
- Detect URLs in text with JavaScript
- Regular Expression to get a string between parentheses in Javascript
- What is the JavaScript string newline character?
- Determine original size of image cross browser?
- Importing lodash into angular2 + typescript application
- How to add onload event to a div element
- MongoDB dot (.) in key name
- The $.param( ) inverse function in JavaScript / jQuery
- jQuery: How to get the event object in an event handler function without passing it as an argument?
- How to set breakpoints in inline Javascript in Google Chrome?
- Has Facebook sharer.php changed to no longer accept detailed parameters?
- Highlight Menu Item when Scrolling Down to Section
- What tag in HTML should I use without special meaning, only to carry meta data?
- Backbone: event lost in re-render
- Returning JSON array from a Django view to a template
- Access a nested property with a string [duplicate]
- What is the difference between Observable and a Subject in rxjs?
- Why doesn’t this.evaluate return DOM nodes correctly?
- Update single value in item array | react redux
- Lock tab key with javascript?
- How to select empty inputs (value=””) using jQuery
- Delay script loading
- Why JSON allows only string to be a key?
- Can forEach in JavaScript make a return? [duplicate]
- Why do shaders have to be in html file for webgl program?