utils/read-components.js
function find(list, predicate) { // eslint-disable-line consistent-return
  for (var i = 0, length = list.length, item; i < length; i++) {
    item = list[i];
    if (predicate(item)) {
      return item;
    }
  }
}
function find(list, predicate) { // eslint-disable-line consistent-return
  for (var i = 0, length = list.length, item; i < length; i++) {
    item = list[i];
    if (predicate(item)) {
      return item;
    }
  }
}
function find ( list , predicate ) { // eslint-disable-line consistent-return for ( var i = 0 , length = list . length , item ; i < length ; i ++ ) { item = list [ i ] ; if ( predicate ( item ) ) { return item ; } } }
Find an item in list.
Find an item in list .