isValidVarName()

Determines if a string can be used as a variable name in JavaScript.

This function is valid in v2.10.1 to v2.24.3. This function has been downloaded 66 times.

Parameter

{string} varName
The string to be tested to see if it is a valid variable name.

Returns

{boolean}
true if the string value of varName is a valid variable name in JavaScript, otherwise false.

Requiring Function

This function is directly required by the following function:

  • uneval()
    Creates a string representation of the given object or primitive.