@lucid-softworks/is-plain-object
v0.1.0
Published
A type guard for ordinary and null-prototype objects.
Downloads
175
Maintainers
Readme
@lucid-softworks/is-plain-object
Check whether a value is an ordinary object literal or a null-prototype object. Arrays, dates, maps, and class instances are rejected.
import { isPlainObject } from "@lucid-softworks/is-plain-object";
isPlainObject({ key: "value" }); // true
isPlainObject(new Date()); // false