Enable Rubocop Performance/ReverseEach
`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)
Showing
Please register or sign in to comment