This will help you to check whether an array element is undefined or not in jquery
if (typeof localHeaderColumnArray[0] != 'undefined' ) {
}
else {
}
Here localHeaderColumnArray is my local array Check whether an array element is undefined or not in jQuery.
if (typeof localHeaderColumnArray[0] != 'undefined' ) {
}
else {
}
Here localHeaderColumnArray is my local array