3 ms·
All I'm saying is that if I'm putting together a quick demo or proof of concept or reduced test case, I'm always going to favor "easy" over "secure". And someti
by kevincennis 14y ago
All I'm saying is that if I'm putting together a quick demo or proof of concept or reduced test case, I'm always going to favor "easy" over "secure". And sometimes using eval is easier.
By the way, the performance of evaling an array that way is abysmal: http://jsperf.com/array-summing-loop-vs-eval http://jsperf.com/array-summing-loop-vs-eval