Ruby

Ruby

Made by DeepSource

Use Array.new() with a block instead of .times RB-PR1023

Performance
Major

Bad practice

9.times.map do |i|
  i.to_s
end

Recommended

Array.new(9) do |i|
  i.to_s
end