I have this shorthand version of a JavaScript if else function and I am wondering how would it look if it was normal if else:
var criteriaField = criteria.hasOwnProperty('searchTerm') ? 'name': 'price';
Aucun commentaire:
Enregistrer un commentaire