I am trying to omit every property called "_sectionInfo" while cloneDeep an object and all it's nested object.
This property should be omitted for the root object and all it's nested objects as well.
My current code
const newModel = cloneDeep(omitBy(model, (val, key) => key === '_sectionInfo'))
Seems to only omit objects with this key at top level.