3 ms·
I liked this little trick for going over and over an array: this.flaps = [ '------', '/‾\\/‾\\', '‾‾\\/‾‾' ]; ... this.el.innerHTML = this.flaps[th
by jofo25 14y ago
I liked this little trick for going over and over an array:
this.flaps = [ '------', '/‾\\/‾\\', '‾‾\\/‾‾' ];
...
this.el.innerHTML = this.flaps[this.flap_i++ % this.flaps.length];