code: function find(array, fn) {
      if (!(0, _is.isArray)(array)) {
          throw new Error('array should be Array type but got ' + (0, _is.whatIs)(array));
      }
      if ((0, _changlinWarning.warning)(!(0, _is.isFunction)(fn), 'fn is not function ,\'find\' will return undefined')) {
          return undefined;
      }
  
      if (array.find) {
          return array.find(fn);
      }
  
      var result = void 0;
  
      try {
          for (var i = 0; i < array.length; i++) {
              if (fn(array[i])) {
                  result = array[i];
                  break;
              }
          }
      } catch (e) {
          (0, _changlinWarning.warning)(true, e);
      }
  
      return result;
  }
docs: 找出数组某一个元素
  
  @param {Array}  array
  @param {function}  fn  过滤函数
  @example
  ```javascript
  find([1,2,'2',3,4,5],function(a){return a==='2'})//=>'2'
  find([1,2,'2',3,4,5],function(a){return a===8})//=>undefined
  ```
  
  @returns {any}