JavaScript – Object.every()

GitHubCodeCommit

The next ‘Object.X’ method is every().  This method was not as clear cut (to me) in its naming.  However, after playing with it, I determined that the method is meant as a test for each element in an array.  More specifically, it will apply a test included in the ‘every’ method and return either true or false depending if all elements in the array pass or fail the test.

screen-shot-2017-02-21-at-12-37-24-pm

Stay tuned!

References

  1. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every
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 )

Connecting to %s