MCPcopy Create free account
hub / github.com/denoland/std / isObject

Function isObject

assert/object_match.ts:51–53  ·  view source on GitHub ↗
(val: unknown)

Source from the content-addressed store, hash-verified

49type Loose = Record<PropertyKey, unknown>;
50
51function isObject(val: unknown): boolean {
52 return typeof val === "object" && val !== null;
53}
54
55function defineProperty(target: object, key: PropertyKey, value: unknown) {
56 return Object.defineProperty(target, key, {

Callers 2

filterObjectFunction · 0.70
filterArrayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected