We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Severity: info • Confidence: high • Auto-fix: ❌
info
high
keys.includes? → has_key? — Use has_key? instead of .keys.includes? to check key existence without allocating an array.
has_key?
.keys.includes?
hash.keys.includes?(:foo)
Note
See bench results at bench/cat-030/
bench/cat-030/
There was an error while loading. Please reload this page.