NAME

ischar - test if a value is a character

SYNOPSIS

val.ischar()

DESCRIPTION

The ischar() method tests whether val is a character type (either a standard character or a wide character).

RETURN VALUE

true if val is a character, false otherwise.

ERRORS

None.

EXAMPLE

    'a'.ischar()     // returns true
    "hello".ischar() // returns false (it is a string/array)

SEE ALSO

typeof
isstring