Javascript Vérifier l'index du tableau null

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