LogoRobo.js
Framework

normalizeRecordShape()

Function: normalizeRecordShape()

function normalizeRecordShape(record, schema): Record<string, unknown>

Normalize a record shape by:

  • Removing undefined values
  • Preserving null values
  • Ensuring consistent field order

Parameters

ParameterTypeDescription
recordRecord<string, unknown>Input record
schemaNormalizedSchemaNormalized schema

Returns

Record<string, unknown>

Normalized record

On this page