JavaScript Check tablic indeks NULL

if (array[index] != null) {
  // The == and != operators consider null equal to only null or undefined
}