Skip to main content
Module

x/unknownutil/mod.ts>isRecordLikeOf

🦕 A lightweight utility pack for handling unknown type
Go to Latest
function isRecordLikeOf
Deprecated
Deprecated

Use is.RecordOf() instead

import { isRecordLikeOf } from "https://deno.land/x/unknownutil@v3.18.0/mod.ts";

Return a type predicate function that returns true if the type of x satisfies Record<K, T>.

Type Parameters

T
optional
K extends PropertyKey = PropertyKey

Parameters

pred: Predicate<T>
optional
predKey: Predicate<K>

Returns

Predicate<Record<K, T>> & WithMetadata<IsRecordLikeOfMetadata>