sus@programming.dev to Programmer Humor@programming.dev · 3 months agoaverage day in NPM landprogramming.devimagemessage-square127fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageaverage day in NPM landprogramming.devsus@programming.dev to Programmer Humor@programming.dev · 3 months agomessage-square127fedilink
minus-squareChaoticNeutralCzech@feddit.orglinkfedilinkEnglisharrow-up0·edit-23 months agoIt’s not just digits. Nobody is expecting it to understand language yet but the parser is-number still returns true for "2e3" or "0x0F". It tells you whether the string can be interpreted as a real numeric value.
It’s not just digits. Nobody is expecting it to understand language yet but the parser
is-number
still returnstrue
for"2e3"
or"0x0F"
. It tells you whether the string can be interpreted as a real numeric value.