Standard.BaseDataArraycontainsOn this pageArray.contains containselem Group: Logical Documentation Checks whether this array contains a given value as an element. Arguments elem: The item to see if it exists in the array. Examples Checking if the array contains the number 72. [1, 383, 72, 301].to_array.contains 72