Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arrays.every #39

Closed
3 tasks done
evanplaice opened this issue Sep 17, 2019 · 2 comments
Closed
3 tasks done

arrays.every #39

evanplaice opened this issue Sep 17, 2019 · 2 comments
Labels
enhancement New feature or request invalid This doesn't seem right operator

Comments

@evanplaice
Copy link
Member

evanplaice commented Sep 17, 2019

The every() method tests whether all elements in the array pass the test implemented by the provided function. It returns a Boolean value.

It always returns true if the array is empty

Checklist

  • implementation
  • tests
  • jsdoc

Details

function isBelowThreshold(currentValue) {
  return currentValue < 40;
}

var array1 = [1, 30, 39, 29, 10, 13];

console.log(array1.every(isBelowThreshold));
// expected output: true

References

@evanplaice evanplaice added enhancement New feature or request operator labels Sep 17, 2019
This was referenced Nov 5, 2019
@evanplaice
Copy link
Member Author

evanplaice commented Nov 6, 2019

Added in v0.22

@evanplaice evanplaice reopened this Jan 15, 2020
@evanplaice evanplaice added the invalid This doesn't seem right label Jan 15, 2020
This was referenced Jan 15, 2020
@evanplaice
Copy link
Member Author

evanplaice commented Jan 15, 2020

Removed in v0.81.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request invalid This doesn't seem right operator
Projects
None yet
Development

No branches or pull requests

1 participant