Created
September 27, 2021 09:26
-
-
Save EileenJuergens/eb963c328b2d189a3038c83e5b1d82bd to your computer and use it in GitHub Desktop.
Array methods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Boolean value | |
// The every() method tests whether ALL elements in the array pass the test implemented by the provided function. | |
Array.prototype.every() | |
// Boolean value | |
// The includes() method determines whether an array includes a certain value among its entries. | |
Array.prototype.includes() | |
// Boolean value | |
// The some() method tests whether at least one element in the array passes the test implemented by the provided function. | |
// It returns true if, in the array, it finds an element for which the provided function returns true; | |
// otherwise it returns false. It doesn't modify the array. | |
Array.prototype.some() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment