JavaScript – … Operator

GitHubCodeCommit

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).

screen-shot-2017-02-21-at-12-47-17-pm

Stay tuned!

References

  1. https://www.w3schools.com/js/js_operators.asp
Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

w

Connecting to %s