just wondering, is there a way to add multiple conditions to a .includes method, for example:
var value = str.includes("hello", "hi", "howdy");
imagine the comma states "or" (it's asking now if the string contains hello hi or howdy. so only if one, and only one of the conditions is true.
is there a method of doing that?
Aucun commentaire:
Enregistrer un commentaire