Code Transformation and Linting with ASTs Challenge 8: Arrow Function
Transcript from the "Challenge 8: Arrow Function" Lesson
>> Kent C. Dodds: So you're gonna do the second exercise, npm start exercise babble 2.
>> Kent C. Dodds: And we added another thing to the mix and that is this multiply function but it's a narrow function, not a function declaration. And so we need to be able to get the name of that thing.
[00:00:25] And actually just to save on time and we'll just do both of this together cuz it all is kinda related. Let's go ahead and skip ahead to step three. And this is the last step for our babble plugin and all this does is it adds another function expression.
[00:00:43] And so yeah, just update your babble plugin so it can handle both of those cases.
>> Kent C. Dodds: Shoot, no rats, no doing that gives you the solution, I hadn't thought about that, rats. Okay forget it. Go back to,
>> Kent C. Dodds: Go back to 2. We'll just do one at a time.
>> Kent C. Dodds: But if you want to you can add that to your test and do that if you finish early.