include? / indexIs the value in the array?Syntaxarr.include?(value)Descriptioninclude? returns true/false; index returns the position.ExampleLoading editor…▶ Try it yourselfExpected outputtrueWhen to use?Membership check.Related commandsarr [ ]← push / << / popmap →