isValidVarName()

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

This function is valid in v2.10.1 to v2.13.1. This function has been downloaded 22 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.