Created
May 15, 2017 03:41
-
-
Save t9md/369d4c66b89df0914fa68f1c3b957483 to your computer and use it in GitHub Desktop.
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
console.log '1. some', [].some(-> true) | |
console.log '2. some', [].some(-> false) | |
console.log '3. some', [].some(-> throw Error()) | |
console.log '------' | |
console.log '1. every', [].every(-> true) | |
console.log '2. every', [].every(-> false) | |
console.log '3. every', [].every(-> throw Error()) | |
# 1. some false | |
# 2. some false | |
# 3. some false | |
# ------ | |
# 1. every true | |
# 2. every true | |
# 3. every true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment