Ruby - Enumerable and Collection Processing
In Ruby, what is the primary purpose of the
reject method when applied to an array?reject method when applied to an array?reject method returns a new array excluding elements for which the block returns true.select, which keeps elements meeting the condition, reject excludes them.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions