index.js
function objects(arr, i) {
  var values = filterType(arr, 'object');
  return i ? values[i] : values;
}
function objects(arr, i) {
  var values = filterType(arr, 'object');
  return i ? values[i] : values;
}
function objects ( arr , i ) { var values = filterType ( arr , 'object' ) ; return i ? values [ i ] : values ; }
Filter `array`, returning only the objects.

```js
var arr = ['a', {a: 'b'}, 1, 'b', 2, {c: 'd'}, 'c'];

utils.objects(arr);
//=> [{a: 'b'}, {c: 'd'}]
```

@param  {Array} `array`
@param  {Array} `index` Optionally specify the index of the object to return, otherwise all objects are returned.
@return {Array} Array of objects or empty array.
@api public
Filter array returning only the objects .