src/utils/object.js
function _deepFlatten (nestedObject, flattenedObject) {
  for (const prop in nestedObject) {
    if (nestedObject.hasOwnProperty(prop)) {
      const value = nestedObject[prop]
      if (typeof value === 'object' && value !== null) {
        _deepFlatten(value, flattenedObject)
      } else {
        flattenedObject[prop] = value
      }
    }
  }
}
function _deepFlatten (nestedObject, flattenedObject) {
  for (const prop in nestedObject) {
    if (nestedObject.hasOwnProperty(prop)) {
      const value = nestedObject[prop]
      if (typeof value === 'object' && value !== null) {
        _deepFlatten(value, flattenedObject)
      } else {
        flattenedObject[prop] = value
      }
    }
  }
}
function _deepFlatten ( nestedObject , flattenedObject ) { for ( const prop in nestedObject ) { if ( nestedObject . hasOwnProperty ( prop ) ) { const value = nestedObject [ prop ] if ( typeof value === 'object' && value !== null ) { _deepFlatten ( value , flattenedObject ) } else { flattenedObject [ prop ] = value } } } }
helper function used by deepFlatten
helper function used by deepFlatten