// the jscodeshift api has been assigned to j previously const ast = j(source); // find all MemberExpressions on object `obj.` ast .find(j.MemberExpression, { object: { name: "obj", }, }) .filter((path) => { const { name } = path.value.property; // filter all accessed properties that starts with `get` return /^get[A-Z].*/.test(name); });