Determines whether the given text can be used to access a property with a PropertyAccessExpression while preserving the property's name.
PropertyAccessExpression
isValidPropertyAccess("abc"); // trueisValidPropertyAccess("123"); // false Copy
isValidPropertyAccess("abc"); // trueisValidPropertyAccess("123"); // false
Determines whether the given text can be used to access a property with a
PropertyAccessExpression
while preserving the property's name.