Skip to content

Instantly share code, notes, and snippets.

@icholy
Created February 25, 2013 16:40
Show Gist options
  • Save icholy/5031122 to your computer and use it in GitHub Desktop.
Save icholy/5031122 to your computer and use it in GitHub Desktop.
function hashcheck1 (inputhash){
Object.keys(hashtable).filter(function (hashtype) {
return hashtype.length === inputhash.length
&& !iz.int(inputhash)
&& inputhash.match(/[0-9]/)
&& iz.alphaNumeric(inputhash);
}).map(function (key) {
return hashtable[key];
}).forEach(function (hashname) {
console.log(hashname);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment