JavaScript – … Operator


The next method is not an actual method, but an operator.  More specifically, the ‘…’ operator.

When I first saw this, my first thought was ‘WFT?!?’.  But after digging into it, it is a very handy operator.  In summary, this operator will take a list of arguments and pull all of them into one object.  This demonstration is done using an array, but it can be applied to other situations (I am assuming).


Stay tuned!



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s