• Stan Hu's avatar
    Enable Rubocop Performance/ReverseEach · 07a308ad
    Stan Hu authored
    `Array.reverse_each` is faster than `Array.reverse.each` because:
    
    * reverse.each creates a new array then loops each element
    * reverse_each loops in reverse order (no intermediate array created)
    07a308ad