addon/utils.js
function removeChildInternals (withoutInternal) {
  return _.chain(withoutInternal)
    .map((item, key) => {
      const withoutInternal = removeInternalValues(item)
      if (withoutInternal !== undefined && withoutInternal !== item) {
        return [key, withoutInternal]
      }
    })
    .filter()
    .fromPairs()
    .value()
}
function removeChildInternals (withoutInternal) {
  return _.chain(withoutInternal)
    .map((item, key) => {
      const withoutInternal = removeInternalValues(item)
      if (withoutInternal !== undefined && withoutInternal !== item) {
        return [key, withoutInternal]
      }
    })
    .filter()
    .fromPairs()
    .value()
}
function removeChildInternals ( withoutInternal ) { return _ . chain ( withoutInternal ) . map ( ( item , key ) => { const withoutInternal = removeInternalValues ( item ) if ( withoutInternal !== undefined && withoutInternal !== item ) { return [ key , withoutInternal ] } } ) . filter ( ) . fromPairs ( ) . value ( ) }
Removes nested _internal keys from an object

@param {Object} withoutInternal Object to remove nested _internal keys from
@returns {Object} Copy of the object with no _internal keys
Removes nested _internal keys from an object