In JavaScript OD, the code like this:
[0, 1, 2, 3, 4].reduce( (prev, curr) => prev + curr );
var maxCallback = ( pre, cur ) => Math.max( pre.x, cur.x );
I have searched in Google with "=> in Javascript", but patched nothing, what does it mean?
In JavaScript OD, the code like this:
[0, 1, 2, 3, 4].reduce( (prev, curr) => prev + curr );
var maxCallback = ( pre, cur ) => Math.max( pre.x, cur.x );
I have searched in Google with "=> in Javascript", but patched nothing, what does it mean?