|  | Check if Array has numbers |  | |
| | | Web Maven |  |
| Posted: Mon Jul 28, 2008 7:23 pm Post subject: Check if Array has numbers |  |
I have an Array that has users IDs some are only Alpha and some are only Numeric. I want to search my array and remove the Numeric values from the array so I only see the Alpha values when displayed. I know I need to use Array.splice to remove the value from the array but I am not sure how to identify if a value is a number and not a name. The ID numbers are random and can range from 1 digit to 10 digits.
Is there any way to confirm if an Array value is a number?
Thank you; Raymond |
| |
| | | kglad |  |
| Posted: Mon Jul 28, 2008 7:26 pm Post subject: Re: Check if Array has numbers |  |
| you can use the isNaN() function. |
| |
| | | Web Maven |  |
| Posted: Mon Jul 28, 2008 7:30 pm Post subject: Re: Check if Array has numbers |  |
Thank you;
This looks like what I have been looking for!! |
| |
| | | kglad |  |
| Posted: Mon Jul 28, 2008 7:33 pm Post subject: Re: Check if Array has numbers |  |
| |
|
|