src/utils/snapshot.js
function exclude (object, excludedProperties) {
  const strippedObject = Object.assign({}, object)

  excludedProperties.forEach(excludedProperty => {
    delete strippedObject[excludedProperty]
  })

  return strippedObject
}
function exclude (object, excludedProperties) {
  const strippedObject = Object.assign({}, object)

  excludedProperties.forEach(excludedProperty => {
    delete strippedObject[excludedProperty]
  })

  return strippedObject
}
function exclude ( object , excludedProperties ) { const strippedObject = Object . assign ( { } , object ) excludedProperties . forEach ( excludedProperty => { delete strippedObject [ excludedProperty ] } ) return strippedObject }
Create a copy of the provided `object` and delete
all properties listed in `excludedProperties`
@param {Object} object
@param {string[]} excludedProperties
@return {Object}
Create a copy of the provided object and delete all properties listed in excludedProperties