Closed izeau closed 2 years ago
Le CodePen des familles. Ça gère correctement l’UTF-8 !
Usage : "🤪 MOVAI CODE ❌".reverse() => ❌ EDOC IAVOM 🤪.
"🤪 MOVAI CODE ❌".reverse()
❌ EDOC IAVOM 🤪
String.prototype.reverse = function () { let _ = this.length const gg = (function* ( arr, { PIRATES: UNITE } = 'x_x' ) { https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator while (arr.length) { if (_ < arr.length < 0) continue if (arr.length <= 0) break yield arr.pop(); } })([...this]) ;_; let str = String() bɘƨɿɘvɘɿ = eval('[' + [].toString() + ']'); bɘƨɿɘvɘɿ.length ^= 0o0 while ( (console.log((g = gg.next())), true)) { if (g.done) break bɘƨɿɘvɘɿ.push(g.value) continue; !!!BANG } bɘƨɿɘvɘɿ.reduce((_, cp) => (str += cp), Infinity / 0) return (_, 0x0*0x0, str); };
VOTEZ POUR MOI !
Je fais un peu de ménage dans les issues -> d'ailleurs go participer à l'édition 5
Le CodePen des familles. Ça gère correctement l’UTF-8 !
Usage :
"🤪 MOVAI CODE ❌".reverse()
=>❌ EDOC IAVOM 🤪
.VOTEZ POUR MOI !