@lucid-softworks/is-record
v0.1.0
Published
A type guard for non-null, non-array record-like objects.
Maintainers
Readme
@lucid-softworks/is-record
Check for non-null objects that are not arrays, narrowing unknown values to a
property-keyed record. Class instances pass; use is-plain-object when
prototype restrictions matter.
import { isRecord } from "@lucid-softworks/is-record";
isRecord({ key: "value" }); // true
isRecord([]); // false