pxt-arcade
pxt-arcade copied to clipboard
substr length broken
let str = "A very long string hey ho hey ho"
game.onPaint(function () {
screen.print(str.substr(6), 0, 0)
})
This prints long stri
as the length in substr() defaults to 10...
we could move substr() to helpers and implement with slice() (which doesn't have the issue)
cc @gitri-ms