code: function find(items, pred) {
    var len = items.length,
        i = -1;
  
    while(++i < len) {
      if (pred(items[i], i)) {
        return items[i];
      }
    }
  
    return null;
  }
docs: Find first element for which predicate is true
  @param {Array} items
  @param {Function} pred
  @return {*}