Language GuideBuilt-in TypesArrayMethodscontainsOn this pagecontainsTest if the array contains the specified value. [1,2,3].contains(2); // true[1,2,3].contains(4); // false Syntax contains(value) Returns A boolean indicating whether the value exists or not.