Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ghanrt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
ghanrt
6y ago
It is. Apart from ++index, this is literally the same as: let ch = if index < strlen then str.charAt(index) else 0 Eminently readable and less boring than long if/else chains in Python.