string[] fruit = ["apple", "pear", "strawberry"];How do I use "among" to see if "apple" is present. E.g. I want to do this:if ("apple".among(fruit))
among doesn't take an array, but rather a list of arguments: "bar".among("foo", "bar", "baz") For searching in an array, you can use canFind: if(fruit.canFind("apple"))