@thi.ng/checks
Version:
Collection of 70+ type, feature & value checks
13 lines • 405 B
TypeScript
/**
* Higher order predicate to check if a given value is an array of `T`. Takes
* `pred` to check single array items.
*
* @remarks
* Uses `Array.prototype.every()` with additional pre-check.
*
* Also see {@link isObjectOf}, {@link isSetOf}.
*
* @param pred
*/
export declare const isArrayOf: <T>(pred: (x: any) => boolean) => (x: any) => x is Array<T>;
//# sourceMappingURL=is-array-of.d.ts.map