chai-exclude.js
function removeKeysFrom (val, props, recursive = false) {
    // Replace circular values with '[Circular]'
    const obj = fclone(val)

    if (isObject(obj)) {
      return removeKeysFromObject(obj, props, recursive)
    }

    return removeKeysFromArray(obj, props, recursive)
  }
function removeKeysFrom (val, props, recursive = false) {
    // Replace circular values with '[Circular]'
    const obj = fclone(val)

    if (isObject(obj)) {
      return removeKeysFromObject(obj, props, recursive)
    }

    return removeKeysFromArray(obj, props, recursive)
  }
function removeKeysFrom ( val , props , recursive = false ) { // Replace circular values with '[Circular]' const obj = fclone ( val ) if ( isObject ( obj ) ) { return removeKeysFromObject ( obj , props , recursive ) } return removeKeysFromArray ( obj , props , recursive ) }
Remove keys from an object or an array.

@param   {Object|Array}  val       object or array to remove keys
@param   {Array}         props     array of keys to remove
@param   {Boolean}       recursive true if property needs to be removed recursively
@returns {Object}
Remove keys from an object or an array .