chai-exclude.js
function assertEqual (_super) {
    return function (val) {
      const props = utils.flag(this, 'excludingProps')

      if (utils.flag(this, 'excluding')) {
        val = removeKeysFrom(val, props)
      } else if (utils.flag(this, 'excludingEvery')) {
        val = removeKeysFrom(val, props, true)
      }

      // In case of 'use strict' and babelified code
      arguments[0] = val

      _super.apply(this, arguments)
    }
  }
function assertEqual (_super) {
    return function (val) {
      const props = utils.flag(this, 'excludingProps')

      if (utils.flag(this, 'excluding')) {
        val = removeKeysFrom(val, props)
      } else if (utils.flag(this, 'excludingEvery')) {
        val = removeKeysFrom(val, props, true)
      }

      // In case of 'use strict' and babelified code
      arguments[0] = val

      _super.apply(this, arguments)
    }
  }
function assertEqual ( _super ) { return function ( val ) { const props = utils . flag ( this , 'excludingProps' ) if ( utils . flag ( this , 'excluding' ) ) { val = removeKeysFrom ( val , props ) } else if ( utils . flag ( this , 'excludingEvery' ) ) { val = removeKeysFrom ( val , props , true ) } // In case of 'use strict' and babelified code arguments [ 0 ] = val _super . apply ( this , arguments ) } }
Override standard assertEqual method to remove the keys from other part of the equation.

@param   {Object}    _super
@returns {Function}
Override standard assertEqual method to remove the keys from other part of the equation .