I had posted about this two years back when it was scheduled for ES6 but this feature did not get accepted then. But now, it's been finally accepted by the committee in the ES7 proposal!
That's awesome! What does it do?
It's a very simple operator, and best explained by an example:
var i = 10; while(i --> 0) // '-->' is the downto operator console.log(i);
As you can see, this operator is used with loops. It basically says that loop till
i goes down to a limit, which in this case is the number
This operator makes our code very easy to read and understand, and I am glad it's coming in ES7.
What are your thoughts about it? Do you like it? Discuss below!