I have started working on Javascript recently after a long break and saw a few instances where =>
operator is being used in many places. Is this something new and a shorthand of something? Where can I find documentation for it or can someone explain? I have googled it but couldn't find anything that could relate to =>
for Example,
browser.getCapabilities().then((c) => {
console.log(c);
});
The one I could relate to is
browser.getCapabilities().then(function() {
console.log(c);
});