DEV Community

Discussion on: JS Hack: Array & Duplicate Values

Collapse
 
khuongduybui profile image
Duy K. Bui

Ninja code is bad - scratch that, legendary - in their readability and maintainability, not performance.

A true ninja would write

$: for(z in a) {

$$: for(g in u) {

and

break $$

Collapse
 
byrro profile image
Renato Byrro

True 😄