Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRubytap and thenSingle-choice MCQ

Which statement correctly describes what `Object#tap` returns?

result = [3, 1, 2].tap { |a| a.sort! }.first p result