mercredi 28 septembre 2016

strict operator not working for value 0 (val === null) in angular js

Im using a condition in angular js as follows:

if( selectedVal === null)
{
  /*some function()*/
}

When the selectedVal is 0(zero), the condition is getting true. Please some one help me to resolve..

Aucun commentaire:

Enregistrer un commentaire