Created
November 17, 2019 12:23
-
-
Save Jagathishrex/d1e20c46fbd92d8ee3f59c293face8f8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var arr = [false,false]; | |
let hasTrue = arr.some((item, index, arr) => { | |
arr.push(true); | |
return item; | |
}); | |
console.log(hasTrue); // false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment