5 lines
85 B
JavaScript
5 lines
85 B
JavaScript
export function getFirstCharacter(str) {
|
|
return str.toString().substring(0, 1);
|
|
}
|
|
|