array contains Word Search Check If Array Contains String Javascript 13 Sep, 2021 If there is no match found indexOf returns -1. When a substring cannot be found it returns -1. Check If Array Contai…