includes检查值是否存在于集合中。支持数组、字符串、对象、Map和Set,对于数组和字符串可指定起始索引。
source (T[] | string | Record<string, any> | Map<K, V> | Set<T>): 要搜索的集合。target (T | string | any | K): 要搜索的值。fromIndex (number): 数组/字符串的可选起始索引(默认为0)。boolean): 如果找到返回true,否则返回false。