src/language-js/utils.js/isMemberish
function isMemberish(node) {
  return (
    node.type === "MemberExpression" ||
    node.type === "OptionalMemberExpression" ||
    (node.type === "BindExpression" && Boolean(node.object))
  );
}