Answers for "array find with string"

C#
0

c# search string array

string [] arr = {"One","Two","Three"};
       var target = "One";
       var results = Array.FindAll(arr, s => s.Equals(target));
Posted by: Guest on August-07-2020
0

find string in array javascript

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

Code answers related to "array find with string"

C# Answers by Framework

Browse Popular Code Answers by Language