src/keys.js
function tap(collection, fn, debugOnly) {
        if (!debugOnly || exports.debug) {
            // Clone the original array to prevent tampering, and send each element to the tap
            collection.slice().forEach(function(element) { fn.call(null, element); });
        }
        return collection;
    }
function tap(collection, fn, debugOnly) {
        if (!debugOnly || exports.debug) {
            // Clone the original array to prevent tampering, and send each element to the tap
            collection.slice().forEach(function(element) { fn.call(null, element); });
        }
        return collection;
    }
function tap ( collection , fn , debugOnly ) { if ( ! debugOnly || exports . debug ) { // Clone the original array to prevent tampering, and send each element to the tap collection . slice ( ) . forEach ( function ( element ) { fn . call ( null , element ) ; } ) ; } return collection ; }
Allows you to tap into the current set of elements without affecting them
in any way, additionally allowing you to chain calls together with this
in the middle for debugging

@static
@param {array} collection - The array to tap
@param {function} fn - The function to call for each element the tap encounters
@param {boolean} debugOnly - If true, will only execute the tap fn if debug === true, defaults to false (always on)
Allows you to tap into the current set of elements without affecting them in any way additionally allowing you to chain calls together with this in the middle for debugging