ruby - Determine if a value exists in an array of hashes - Stack Overflow

PHOTO EMBED

Thu Aug 13 2020 20:55:41 GMT+0000 (Coordinated Universal Time)

Saved by @ludaley #rb

array_of_hashes.any? {|h| h[:a] == 11}
content_copyCOPY

Asana Dashboard Project ( Rails Api + Vanilla Js)

https://stackoverflow.com/questions/1514883/determine-if-a-value-exists-in-an-array-of-hashes