hydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 3 months ago"☹️".reverse() == "🙂"sopuli.xyzimagemessage-square29fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1image"☹️".reverse() == "🙂"sopuli.xyzhydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 3 months agomessage-square29fedilink
minus-squareSkull giver@popplesburger.hilciferous.nllinkfedilinkEnglisharrow-up0·edit-23 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.