Demystifying the Long Arrow "Operator"

added by JavaScript Kicks
12/3/2018 8:25:40 AM

1081 Views

I recently stumbled upon some code that I found to be really interesting. It essentially iterates over a loop but with a twist. It uses the mysterious long arrow "operator". What's interesting and unusual about this "operator" is the fact that it iterates over the pets array in reverse, as seen in the console output.


0 comments