spec/lib/jspec.js
function(object, callback) {
       if (object.constructor == Array)
         for (var i = 0, len = object.length; i < len; ++i)
           callIterator(callback, i, object[i])
       else
         for (var key in object) 
           if (object.hasOwnProperty(key))
             callIterator(callback, key, object[key])
     }
function(object, callback) {
       if (object.constructor == Array)
         for (var i = 0, len = object.length; i < len; ++i)
           callIterator(callback, i, object[i])
       else
         for (var key in object) 
           if (object.hasOwnProperty(key))
             callIterator(callback, key, object[key])
     }
function ( object , callback ) { if ( object . constructor == Array ) for ( var i = 0 , len = object . length ; i < len ; ++ i ) callIterator ( callback , i , object [ i ] ) else for ( var key in object ) if ( object . hasOwnProperty ( key ) ) callIterator ( callback , key , object [ key ] ) }
Iterate an object, invoking the given callback.

@param  {hash, array} object
@param  {function} callback
@return {JSpec}
@api public
Iterate an object invoking the given callback .