It's toLowerCase()
with a capital "C".
Object foo has no method 'toLowercase' [closed]
-
11-04-2022 - |
문제
I'm trying to get a lowercase value of each key in said object.
for (each in {'foo':'bar','bar':'foo'}) {
console.log(typeof each, each.toLowercase());
}
The error I get is Object foo has no method 'toLowercase'
, yet typeof each
returns 'string'
해결책
제휴하지 않습니다 StackOverflow