Created
April 5, 2018 13:10
-
-
Save GitHub30/296cfc9473d9dd7a96dc4f6e26839891 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
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script> | |
<script> | |
var permissions = []; | |
for(var i=0; i<=11; i++){ | |
permissions.push(Number('0b1' + '0'.repeat(i))); | |
} | |
console.info(_.sum(permissions)); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment