UNPKG

@thi.ng/checks

Version:

Collection of 70+ type, feature & value checks

13 lines 442 B
/** * Higher order predicate to check if a given value is an object with all values * of type `T`. Takes `pred` to check single array items. * * @remarks * Uses `Object.values().every()` with additional pre-check. * * Also see {@link isArrayOf}, {@link isSetOf}. * * @param pred */ export declare const isObjectOf: <T>(pred: (x: any) => boolean) => (x: any) => x is Record<PropertyKey, T>; //# sourceMappingURL=is-object-of.d.ts.map