DEV Community


Discussion on: JavaScript: Data Structures (Part 2 - Sets)

banesag profile image
Banesa Guaderrama Author

Hi Olimpio - You are right, .size is not a valid method. It was used by jQuery.

Note: The size() method was deprecated in version 1.8 and removed in jQuery version 3.0. Use the length property instead.

Thanks for taking the time of reading and comment!