Sunday, 15 July 2018

Refactoring functions from es5 to es6

I have a script using nightwatch in nodejs...I've having the hardest time understanding es6 and how it applies to my script.I'm exporting these functions so I can use it in another file. https://ift.tt/2LaQYzX is the file I want to call the functions in. https://ift.tt/2LlaKFL the most part, I feel like all I need to change is add the arrow function rather than typing the function syntax? But I'm pretty lost.

Submitted July 15, 2018 at 07:09PM by ljheartless

No comments:

Post a Comment