All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
size
count
size should be preferred over count. Read more here.
[1, 2, 3].count {a: 1, b: 2, c: 3}.count
[1, 2, 3].size {a: 1, b: 2, c: 3}.size [1, 2, 3].count { |e| e > 2 }