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...

Markdown supported · ⌘↵ to post
No responses yet.