Sha256: 0b04567d9902e3afafc084ca5a91dc85479111050ec3e30f8dd3002931956551
Contents?: true
Size: 426 Bytes
Versions: 72
Compression:
Stored size: 426 Bytes
Contents
/** * Here is an example solution for the Pangram exercise */ component { function isPangram( input ) { // Lowercase input to simplify search input = input.lCase(); var i = 96; // ASCII codes 97-122 are a-z while( ++i <= 122 ) { // If any letter is missing, then quit if( !input.find( chr( i ) ) ) { return false; } } // If we made it through, then all letters were found! return true; } }
Version data entries
72 entries across 71 versions & 1 rubygems