spec/lib/jspec.js
function(object, callback) {
      return inject(object, [], function(selected, key, value){
        if (callIterator(callback, key, value))
          selected.push(value)
      })
    }
function(object, callback) {
      return inject(object, [], function(selected, key, value){
        if (callIterator(callback, key, value))
          selected.push(value)
      })
    }
function ( object , callback ) { return inject ( object , [ ] , function ( selected , key , value ) { if ( callIterator ( callback , key , value ) ) selected . push ( value ) } ) }
Returns an array of values collected when the callback
given evaluates to true.

@param  {hash, array} object
@return {function} callback
@return {array}
@api public
Returns an array of values collected when the callback given evaluates to true .