UNPKG

@n3okill/utils

Version:
8 lines (7 loc) 256 B
/** * Check if array contains the item * @param arr The array to search * @param item The item to be searched * @returns Return `true` if the array contains the item */ export declare function contains<T>(arr: Array<T> | undefined, item: T): boolean;