Error!
Success!

JavaScript int.TryParse Equivalent

0
kicks

JavaScript int.TryParse Equivalent  (Unpublished)

One of the most handy methods in .NET is the int.TryParse method. It makes it really convenient when evaluating a string value as an integer. But, JavaScript has no equivalent so you need to do your own evaluation every time. Here's a simple JavaScript method I wrote that takes the work out of evaluating a string to an integer.


Kicked By:
Drop Kicked By: