/**
 * Util
 */
( function ( root, factory ) {

    if ( typeof define === 'function' && define.amd ) {

        define( [
            'jquery'
        ], factory );

    } else if ( typeof exports === 'object' ) {

        module.exports = factory(
            require( 'jquery' )
        );

    } else {

        root.AdManager = root.AdManager || {};

        root.AdManager.Util = factory(
            root.jQuery
        );

    }

} ( this, function ( $ ) {

    /**
     * Debug: a console.log wrapper.
     *
     * @return {String}
     */
    var debug = function () {

        if ( typeof console !== 'object' || ! console.log ) {
            return;
        }

        return Function.prototype.bind.call( console.log, console );

    } ();

    /**
     * Return difference between arrays.
     *
     * @param  {Array} array
     * @param  {Array} values
     * @return {Array} diff
     */
    function difference( array, values ) {

        var diff = [];

        $.grep( array, function ( element ) {
            if ( $.inArray( element, values ) === -1 ) {
                diff.push( element );
            }
        } );

        return diff;

    }

    /**
     * Remove by key.
     *
     * @param  {Array}   array
     * @param  {Integer} key
     * @return {Array}   array
     */
    function removeByKey( array, key ) {

        array = $.grep( array, function ( element, index ) {
            return index !== key;
        } );

        return array;

    }

    //////////////////////////////////////////////////////////////////////////////////////

    return {
        debug:       debug,
        difference:  difference,
        removeByKey: removeByKey
    };

} ) );
@@ -478,16 +478,9 @@
   * 
-Debug: a
+A
  con
@@ -495,24 +495,207 @@
  wrapper
-.%0A     *
+ with the correct line numbers.%0A     *%0A     * @see    https://gist.github.com/bgrins/5108712%0A     * @see    https://developer.mozilla.org/en-US/docs/Web/API/Console/log%0A     * @param  %7BMixed%7D
 %0A     * 
@@ -862,50 +862,25 @@
 urn 
-Function.prototype.bind.call( console.log,
+console.log.bind(
  con

Update debug to use a “less expensive” call