Module

x/evt/tools/reducers/includes.ts

­čĺžEventEmitter's typesafe replacement
Go to Latest
File

import { ReduceArguments, toReduceArguments } from "./reduceify.ts";
export function arrIncludes<ArrOf>(arr: readonly ArrOf[], e: ArrOf): boolean { return arr.indexOf(e) >= 0;}
export function includes<ArrOf>(e: ArrOf): ReduceArguments<ArrOf, boolean> { return toReduceArguments(arrIncludes, e);}