MCPcopy Index your code
hub / github.com/simstudioai/sim / isPlainRecord

Function isPlainRecord

packages/utils/src/object.ts:29–36  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

27 * Returns true only for object-map values, excluding arrays and null.
28 */
29export function isPlainRecord(value: unknown): value is Record<string, unknown> {
30 if (typeof value !== 'object' || value === null || Array.isArray(value)) {
31 return false
32 }
33
34 const prototype = Object.getPrototypeOf(value)
35 return prototype === Object.prototype || prototype === null
36}
37
38/**
39 * Returns true for any non-null, non-array object — the LOOSE record check.

Callers 9

executeWorkflowCoreFunction · 0.90
migrateBlockSubblockIdsFunction · 0.90
normalizeRecordFunction · 0.90
normalizeStringRecordFunction · 0.90
normalizeRecordMapFunction · 0.90
object.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected