lib/full_stack.js
function $wrapped( ...args ) {
      const wrappedArgs = args.slice();

      args.forEach( ( arg, i ) => {
        if ( typeof arg === 'function' ) {
          wrappedArgs[i] = wrapCallback( args[i], origin );
        }
      } );

      return method.call( this, ...wrappedArgs );
    }
function $wrapped( ...args ) {
      const wrappedArgs = args.slice();

      args.forEach( ( arg, i ) => {
        if ( typeof arg === 'function' ) {
          wrappedArgs[i] = wrapCallback( args[i], origin );
        }
      } );

      return method.call( this, ...wrappedArgs );
    }
function $wrapped ( ... args ) { const wrappedArgs = args . slice ( ) ; args . forEach ( ( arg , i ) => { if ( typeof arg === 'function' ) { wrappedArgs [ i ] = wrapCallback ( args [ i ] , origin ) ; } } ) ; return method . call ( this , ... wrappedArgs ) ; }
return a wrapped version of given object method
return a wrapped version of given object method