Ruby - Enumerable and Collection Processing
What does the Ruby method
reject do when called on an array?reject do when called on an array?rejectreject method filters elements by removing those that satisfy the condition.select, which keeps matching elements, reject excludes them and returns a new array.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions