index.js
function first (array, filter) {
  var i = 0;
  var length = array.length;
  var item;
  for (; i < length; i ++) {
    item = array[i];
    if (filter(item)) {
      return item;
    }
  }

  return null;
}
function first (array, filter) {
  var i = 0;
  var length = array.length;
  var item;
  for (; i < length; i ++) {
    item = array[i];
    if (filter(item)) {
      return item;
    }
  }

  return null;
}
function first ( array , filter ) { var i = 0 ; var length = array . length ; var item ; for ( ; i < length ; i ++ ) { item = array [ i ] ; if ( filter ( item ) ) { return item ; } } return null ; }
Returns the first matched array item
Returns the first matched array item