Ruby - Arrays
What does the
include? method do when called on an array in Ruby?include? method do when called on an array in Ruby?include?include? method checks if a given element exists inside the array.length returns count, flatten merges nested arrays, and removing duplicates is done by uniq.include? = Check element presence [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions