UNPKG

prostgles-types

Version:

Shared TypeScript object definitions for prostgles-client and prostgles-server

4 lines (3 loc) 121 B
export function includes<T>(array: T[] | readonly T[], elem: any): elem is T { return array.some((v) => v === elem); }