DEV Community

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

Collapse
 
rnrnshn profile image
Olimpio

To .size( ) pops an error on the console

arrow.size is not a function

Collapse
 
banesag profile image
Banesa Guaderrama

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!

Collapse
 
purvajain profile image
PurvaJain

just use arrow.size