Last active
August 29, 2015 14:25
-
-
Save MSakamaki/b1a65ad6ecffcf0e9755 to your computer and use it in GitHub Desktop.
javascript code snippet
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
var rgx = /^(25[0-4]|2[0-4][0-9]|[01][0-9][0-9]|[0-9][0-9]|[1-9])$/ | |
Array.apply(null, {length: 256}) | |
.map(Number.call, Number) | |
.forEach(function(v){ | |
if (!rgx.test(v)) console.log(v) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment