Check whether an array element is undefined or not in jQuery

This will help you to check whether an array element is undefined or not in jquery
[js]
if (typeof localHeaderColumnArray[0] != ‘undefined’ ) {

}
else {
}
[/js]
Here localHeaderColumnArray is my local array

Leave a Reply

Your email address will not be published. Required fields are marked *

Serverless 360