@thi.ng/checks
Version:
Collection of 70+ type, feature & value checks
14 lines • 433 B
TypeScript
/**
* Higher order predicate to check if a given value is a Set of `T`. Takes
* `pred` to check single items.
*
* @remarks
* Uses same semantics as `Array.prototype.every()`, i.e. also returns true if
* given an empty set.
*
* Also see {@link isArrayOf}, {@link isObjectOf}.
*
* @param pred
*/
export declare const isSetOf: <T>(pred: (x: any) => boolean) => (x: any) => x is Set<T>;
//# sourceMappingURL=is-set-of.d.ts.map