Skip to content

Instantly share code, notes, and snippets.

@EileenJuergens
Created September 27, 2021 09:26
Show Gist options
  • Save EileenJuergens/eb963c328b2d189a3038c83e5b1d82bd to your computer and use it in GitHub Desktop.
Save EileenJuergens/eb963c328b2d189a3038c83e5b1d82bd to your computer and use it in GitHub Desktop.
Array methods
// 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