JavaScript: String.prototype.charAt
str.charAt(index)
- Return a string of length 1 that's the String Code Unit at index index of str. Return empty string if index is out of bound.
console.log("abc".charAt(0) === "a");
If index is out of bound, return empty string.
console.log("abc".charAt(9) === ""); // true