文件操作 - includes.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/type-fest/source/includes.d.ts
编辑文件内容
import type {IsEqual} from './is-equal'; /** Returns a boolean for whether the given array includes the given item. This can be useful if another type wants to make a decision based on whether the array includes that item. @example ``` import type {Includes} from 'type-fest'; type hasRed<array extends any[]> = Includes<array, 'red'>; ``` @category Array */ export type Includes<Value extends readonly any[], Item> = Value extends readonly [Value[0], ...infer rest] ? IsEqual<Value[0], Item> extends true ? true : Includes<rest, Item> : false;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件