Why doesn't [“A”,“B”,“C”].map(String.prototype.toLowerCase.call) work?

后端 未结 0 1655
醉话见心
醉话见心 2021-02-11 20:39

This, of course, returns what you would expect:

[\"A\",\"B\",\"C\"].map(function (x) {
    return x.toLowerCase();
});
// --> [\"a\", \"b\", \"c\"]

相关标签:
回答
  • 消灭零回复
提交回复
热议问题