code: function variableDeclarationHasPattern(node) {
    for (var i = 0; i < node.declarations.length; i++) {
      if (t.isPattern(node.declarations[i].id)) {
        return true;
      }
    }
    return false;
  }
docs: Test if a VariableDeclaration's declarations contains any Patterns.