includes
Checks if a value exists in a collection. Supports arrays, strings, objects, Maps, and Sets with optional starting index for arrays and strings.
source
(T[] | string | Record<string, any> | Map<K, V> | Set<T>
): The collection to search.target
(T | string | any | K
): The value to search for.fromIndex
(number
): Optional starting index for arrays/strings (default: 0).boolean
): True if found, otherwise false.