code: function filterType(arr, type) {
    var len = arr.length;
    var res = [];
    for (var i = 0; i < len; i++) {
      var ele = arr[i];
      if (typeOf(ele) === type) {
        res.push(ele);
      }
    }
    return res;
  }
docs: Filter `array`, returning only the values of the given `type`.
  
  ```js
  var arr = ['a', {a: 'b'}, 1, 'b', 2, {c: 'd'}, 'c'];
  
  utils.filterType(arr, 'object');
  //=> [{a: 'b'}, {c: 'd'}]
  ```
  
  @param  {Array} `array`
  @param  {String} `type` Native type, e.g. `string`, `object`
  @return {Boolean}
  @api public