Q:

Arrow function syntax with assignment ES6

Quick question, I'm new with es6 syntax and typscript and I just found this code in my current ng2 project:
this.contextActions.getCurrentContextAction().subscribe((link) => this.currentAction = link);

Just to be clear if I understand it correctly.
The function subscribe takes as argument a function which takes a parameter (link) and it assigns the input parameter to the current action, and it returns the result of this assigment?
Is it correct my understanding?
What is actually what this arrow function returns? The result of the assigment? 
An assigment does not return anything right?
Please clrify this to me.
Thanks

A:

Is it correct my understanding? What is actually what this arrow function returns? The result of the assigment?

Yes. It may not be significant depending on what the code calling it does with the return value.

An assigment does not return anything right?

It evaluates as the assigned value.

var bar, foo;
foo = (bar = 1);
console.log("Foo is " + foo);

