mercredi 28 juin 2017

Angular 2: Not allow to search spaces

How do you say it in a condition that name is not equal to spaces? I have this

name != null && name !== ' '

But it still continues to search with multiple spaces. It only stops searching with one space. How about if there are a lot of space?

Aucun commentaire:

Enregistrer un commentaire