Answers for "check if value in ruby array"

6

contains ruby array

>> ['Cat', 'Dog', 'Bird'].include? 'Dog'
=> true
Posted by: Guest on April-08-2020
0

how to check if data is an array or not ruby

.kind_of?(Array)
Posted by: Guest on April-29-2021

Code answers related to "check if value in ruby array"

Browse Popular Code Answers by Language