defnode.js
function(type, node) {
    return seen.indexOf(node) == -1 && ((type == 'AssignmentExpression' && node.right == expr) || (type == 'VariableDeclarator' && node.init == expr));
  }
function(type, node) {
    return seen.indexOf(node) == -1 && ((type == 'AssignmentExpression' && node.right == expr) || (type == 'VariableDeclarator' && node.init == expr));
  }
function ( type , node ) { return seen . indexOf ( node ) == - 1 && ( ( type == 'AssignmentExpression' && node . right == expr ) || ( type == 'VariableDeclarator' && node . init == expr ) ) ; }
Traverse to parent AssignmentExpressions to return all names in chained assignments.
Traverse to parent AssignmentExpressions to return all names in chained assignments .