Add rubocop cop for .keys.first and .values.first
`.keys.first` and `.values.first` load all keys/values into memory. This cop use `.each_key.first` and `.each_value.first` to reduce memory usage and execution time.
Showing
Please register or sign in to comment