isLower() (Simulated functionality)

Check if character is lower case.

Property/method value type:Boolean primitive

This is a function normally found in the C language. However, it is useful to script developers as well and may be available in some implementations as an extension to the ECMA standard functionality.

This function will return true for any character in the following set:

a b c d e f g h i j k l m

n o p q r s t u v w x y z

Strictly speaking, this function should be coded to be aware of locale specific issues. You may want to take the example simulation provided here and modify it to your own needs to support that. This is just a basic working example.

Example code:

   // Test for lowercase letters (only good up to char 127)
   function isLower(aChar)
      myCharCode = aChar.charCodeAt(0);
      if((myCharCode > 96) && (myCharCode < 123))
         return true;
      return false;

See also:ASCII, Character handling, Character set, Character testing, Character-case mapping, Enquiry functions, isUpper(), Letter, Unicode