Skip to content
  • Stan Hu's avatar
    Enable Rubocop Performance/ReverseEach · 7655caa43147
    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)
    7655caa43147