Compare two OCF objects and return detailed results.
First OCF object (typically the source/expected value)
Second OCF object (typically the result/actual value)
Optional
Comparison options
Comparison result with equality status and list of differences
const result = ocfCompare(sourceFixture, readBackData, { ignoredFields: DEFAULT_INTERNAL_FIELDS, reportDifferences: true});if (!result.equal) { console.log('Differences found:', result.differences);} Copy
const result = ocfCompare(sourceFixture, readBackData, { ignoredFields: DEFAULT_INTERNAL_FIELDS, reportDifferences: true});if (!result.equal) { console.log('Differences found:', result.differences);}
Compare two OCF objects and return detailed results.