One of the guys I work with stumbled upon a quick and easy way to use logic to check if a value is not a valid number (non dependant on type). The logic is as follows:
"123" == +"123" // true
"asdf" == +"asdf" // false
Now you can check to see if your variables are numbers even when they come through as strings (eg. from a form)




cheap jordans
rambled eggs ,male ,28
Feb 19, 2012
rambled eggs ,male ,28 <b><a href="http://www.ebuyairjordan.com/air-jordan-shoes-4-C4.html">retro jordan 4 cheap</a></b> <b><a href="http://www.ebuyairjordan.com/">buy jordans</a></b> years old ,Huazhou City <b><a href="http://www.ebuyairjordan.com/air-jordan-shoes-4-C4.html">cheap jordan 4</a></b> arena in the <b><a href="http://www.ebuyairjordan.com/air-jordan-shoes-5-C5.html">jordans 5 for sale</a></b> town people .The forum <b><a href="http://www.ebuyairjordan.com/air-jordan-shoes-5-C5.html">jordan 5 retro</a></b> in 200... <b><a href="http://www.ebuyairjordan.com/air-jordan-shoes-5-C5.html">air jordan 5 sale</a></b>
Post new comment