Array. prototype. at() - An intuitive way to retrieve elements
The array.prototype .at() method accepts an integer and returns the value at that index.
Usage
const colors = ["red", "blue", "green", "yellow"];
console.log(colors.at(1)); // blue
If no value is found at the specified index, this method returns un...
gauravsen.hashnode.dev2 min read