If you have an array,
array = [1,2,3,6,3,”A”,3,1,”A”, 5,6,”A”,7,7] then do
array.uniq = [1, 2, 3, 6, “A”, 5, 7]
very easy in ruby right?!!
Author: Abhilash
Hi, Iโm Abhilash! A seasoned web developer with 15 years of experience specializing in Ruby and Ruby on Rails. Since 2010, Iโve built scalable, robust web applications and worked with frameworks like Angular, Sinatra, Laravel, Node.js, Vue and React.
Passionate about clean, maintainable code and continuous learning, I share insights, tutorials, and experiences here. Letโs explore the ever-evolving world of web development together!
View all posts by Abhilash