All questions

Advanced · JavaScript · Objects

Diff two API responses

Commonly asked: Contract-testing and API regression discussions · ~18 min

Write diffKeys(oldObj, newObj) returning { added, removed, changed } — arrays of dotted key paths, each sorted alphabetically.

Checking your membership…