isValidVarName()

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

This function is valid in v2.1.0 to v2.10.0. This function has been downloaded 6 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.