jspm_packages/npm/babel-core@5.8.38/lib/generation/node/index.js
function find(obj, node, parent) {
  if (!obj) return;
  var result;

  var types = Object.keys(obj);
  for (var i = 0; i < types.length; i++) {
    var type = types[i];

    if (t.is(type, node)) {
      var fn = obj[type];
      result = fn(node, parent);
      if (result != null) break;
    }
  }

  return result;
}
function find(obj, node, parent) {
  if (!obj) return;
  var result;

  var types = Object.keys(obj);
  for (var i = 0; i < types.length; i++) {
    var type = types[i];

    if (t.is(type, node)) {
      var fn = obj[type];
      result = fn(node, parent);
      if (result != null) break;
    }
  }

  return result;
}
function find ( obj , node , parent ) { if ( ! obj ) return ; var result ; var types = Object . keys ( obj ) ; for ( var i = 0 ; i < types . length ; i ++ ) { var type = types [ i ] ; if ( t . is ( type , node ) ) { var fn = obj [ type ] ; result = fn ( node , parent ) ; if ( result != null ) break ; } } return result ; }
Test if node matches a set of type-matcher pairs.
@example
find({
VariableDeclaration(node, parent) {
return true;
}
}, node, parent);
Test if node matches a set of type - matcher pairs .