hydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 1 year ago"☹️".reverse() == "🙂"sopuli.xyzimagemessage-square24linkfedilinkarrow-up1235arrow-down113
arrow-up1222arrow-down1image"☹️".reverse() == "🙂"sopuli.xyzhydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 1 year agomessage-square24linkfedilink
minus-squaretmat256@lemmings.worldlinkfedilinkarrow-up3·1 year agoIt’s also incredibly useful as a failsafe in a helper method where you need the argument to be a string but someone might pass in something that is sort of a string. Lets you be a little more flexible in how your method gets called
It’s also incredibly useful as a failsafe in a helper method where you need the argument to be a string but someone might pass in something that is sort of a string. Lets you be a little more flexible in how your method gets called