hydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 23 days ago"☹️".reverse() == "🙂"sopuli.xyzimagemessage-square25fedilinkarrow-up1227cross-posted to: [email protected]
arrow-up1227image"☹️".reverse() == "🙂"sopuli.xyzhydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 23 days agomessage-square25fedilinkcross-posted to: [email protected]
minus-squaretmat256@lemmings.worldlinkfedilinkarrow-up2·23 days 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