I have many instructions like this one:
x.match('pattern') && x = 'pattern' + y;
Or similarly:
var a = 'pattern'; x.match(a) && x = a + y;
Is it the best way to write such instruction or is there a better way to write the same?
Aucun commentaire:
Enregistrer un commentaire