Creates JavaScript property accessor expression.
If accessed property key is valid JavaScript identifier, then creates a .${key} accessor. Otherwise, creates an accessor like ['${key}'] with key properly quoted.
key
.${key}
['${key}']
Accessed property key.
Quote symbol to use.
Property accessor expression.
Generated using TypeDoc
Creates JavaScript property accessor expression.
If accessed property
key
is valid JavaScript identifier, then creates a.${key}
accessor. Otherwise, creates an accessor like['${key}']
withkey
properly quoted.