California is returned as california, note the lack of capitalization. Has anyone else encountered this? Is there a fix in the works?
let city = "san diego"; city = city.split(' ') .map(c => c.toUpperCase() + c.substring(1)) .join(' ');
In this case even states that are made from two words, first letters will be uppercased always.