rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
18 lines • 562 B
TypeScript
import { TTypedArray } from "../typed-array/t-typed-array.js";
/**
* @public
* Returns true if the item is present in the list (=== equality test).
*
* @remarks
* See {@link (arrayContains:1)}.
*/
export declare function arrayContains(items: TTypedArray, item: number): boolean;
/**
* @public
* Returns true if the item is present in the list (=== equality test).
*
* @remarks
* See {@link (arrayContains:2)}.
*/
export declare function arrayContains<TItem>(items: readonly TItem[], item: TItem): boolean;
//# sourceMappingURL=array-contains.d.ts.map