Answers for "jquery find string in array"

0

jquery in array

function isInArray(value, array) {
return array.indexOf(value) > -1;
}
Posted by: Guest on February-18-2021
0

find string in array javascript

var myarr = ["I", "like", "turtles"];
var arraycontainsturtles = (myarr.indexOf("turtles") > -1);
Posted by: Guest on September-23-2020
-2

js inarray

array.includes(élémentRecherché)
array.includes(élémentRecherché, indiceDépart)
Posted by: Guest on December-23-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language