> str = "Mongo"
Mongo
> for (var c in str)
{ print(c) }
Expected result:
0
1
2
3
4
Actual result:
0
1
2
3
4
ltrim
rtrim
startsWith
endsWith
pad
—
I also tested it with the native V8 version 3.21.4 or with JavaScript in Chrome. It's working well there.