hydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 5 months ago"☹️".reverse() == "🙂"sopuli.xyzexternal-linkmessage-square28fedilinkarrow-up11arrow-down10cross-posted to: programmer_humor@programming.dev
arrow-up11arrow-down1external-link"☹️".reverse() == "🙂"sopuli.xyzhydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 5 months agomessage-square28fedilinkcross-posted to: programmer_humor@programming.dev
minus-squareSkull giver@popplesburger.hilciferous.nllinkfedilinkEnglisharrow-up0·edit-25 months agoThe npm package flip-text is the closest that I know of: const flip = require('flip-text'); const str = "dobo"; const flippedStr = flip(str); console.log(flippedStr); // Output: "qoqo" However, with great libraries like is-thirteen I’m sure JavaScript will some day gain a proper flipping library.
The npm package
flip-text
is the closest that I know of:const flip = require('flip-text'); const str = "dobo"; const flippedStr = flip(str); console.log(flippedStr); // Output: "qoqo"
However, with great libraries like is-thirteen I’m sure JavaScript will some day gain a proper flipping library.