How to get first character of string? September 8, 2022 by Tarik charAt can give wrong results for Unicode. Use Array.from: Array.from('some string')[0];