3 ms·
> code golfing tricks > window[`test${i}`] surely you must mean `eval('test'+i)` :)
by lhorie 5y ago
> code golfing tricks
> window[`test${i}`]
surely you must mean `eval('test'+i)` :)
- chrismorgan 5y agoWell, that was actually what I wrote first for benchmarking, but I gave up waiting for it to finish. eval is slow.